Dynamically add CheckGroup with checkbox items to Display Form
Hi all,
I'm trying to add multiple CheckGroups to a display form dynamically. I added a part of the workflow, to clarify. Inside the load event of a display form, I have a For Each loop, and within that For Each loop (running through an array of names) I add a CheckGroup Form Element to the form. Works fine.
However, two steps later I want to Set the Form Element Items for that CheckGroup. But it does not recognize the dynamically created Element ID of the CheckGroup; the workflow stops with the error:
Error in header element's load event in a Display Form activity: The form does not contain an element with the name '$form1.state.checkbox_functie'.
I tried adding a delay in between, to make sure the checkbox was properly loaded, but it didn't help.
Something else I tried was adding the items during creation, but then nothing happens: the description is added, but the items not. I tried that by defining the element as follows, in the 'AddFormElement':
={
description:$attrNames.result[$count.result],
items:$formElementItems1.items
}My question thus is; is there a way to dynamically add element items to a checkgroup, which is itself also dynamically created? Either by adding them later, or by adding them during creation.
Thanks in advance!
-
The items seem to load for me using your second method, are you getting an error when setting the items in the object?
0 -
Thanks for checkng it out @Zack Robison? ! I am not getting an error, but the checkboxes simply don't show. Does it work for you using my workflow as a start? Or did you recreate it yourself?
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer