Hoppa till huvudinnehållet

How do I retrieve the user's value from a form element that was created dynamically?

Kommentarer

2 kommentarer

  • Berend Veldkamp

    The same way you would get the value from a non-dynamic form element. The only difference is that you won't have code completion on form.state.

     

    If the ID of the element is myDynamicElement:

    =$form1.state.myDynamicElement.value   or   =$form1.state["myDynamicElement"].value

     

     

    0
  • Permanently deleted user

    Thank You! This worked for me: =$form1.state[$forEach2.item].value

     

    In case it helps someone else, for my situation, I had a list of string field names that were used to create dynamic form elements and needed to retrieve the users value from the dynamically created form element.

    0

Du måste logga in om du vill lämna en kommentar.