Correct syntax to construct button collection for 'Set Form Element Items'?
Hi,
struggling to construct the 'collection' for the 'Set Form Element Items' activity...
I'm wanting to set buttons dynamically on a display form footer 'load-footer' event, but can't crack it. Can't find any examples anywhere, tried variations of this to no avail:
=[{label: "First", value: "one"}, {label: "Second", value: "two"}]
Small example would be fanatastic!
Thanks!
-
Hi David,
I've attached an example using the Get Form Element Items From Collection activity with your sample syntax.
0 -
Thanks Amanda. Much appreciated.
0 -
I'm struggling with this as well, would it be possible to post an example here, I'm not able to see the example that was attached previously. thank you!
1 -
Jessica Gould were you able to get this figured out? It looks like you have to set the button's visible property to true.
0 -
David Flack my issue ended up being a bug with Web. I worked with Amanda Frech on it, unfortunately my brain can't remember all the details...
0 -
Sorry for the missing attachment, it looks like our json attachment support got dropped during the last community migration. Here's an example for any future readers that you can get to using File > Open by URL in workflow designer: https://www.arcgis.com/home/item.html?id=0dc67a2c22e74a49a369176c16f21256
The bug Jessica mentioned is 150128 "[Workflow] Form button text cannot be dynamically set using Get Form Element Items From Collection". It's a Web-specific issue and was fixed in the recent 5.18 release of Web.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
6 kommentarer