How can I add a new item to a dynamically-built checkgroup in a form?
I'm building a form that has a dynamically built check group that is populated in a subworkflow. The subworkflow uses a Query Layer, Get Form Element Items from Features, and Set Form Element Items to create checkboxes for unique values from an attribute. I'm wanting to append another checkbox ("Other") to the bottom of the checkgroup, but can't figure out how to add it. Any help would be most appreciated.
Chris
-
OK, just figured it out. I'll post it here to document it.
After the Query Layer, insert a Parse JSON activity, with the JSON expression {"symbol":null,"attributes":{"NTG_BASIN":"Other"}} (note that NTG_BASIN is the attribute)
Insert an Add Item activity. The collection is $query1.features, and the item is $parseJson1.result
The final order of activities is:
Query Layer
Parse JSON
Add Item
Get Form Element Items From Features
Set Form Element Items
0
Please sign in to leave a comment.
Comments
1 comment