@sangL sorry I think i wasnt very clear in my initial post.
is there a way to pass a Variable to the “Label” of the Text Field? I want to ask the user to enter a Quantity for every product in the column. Using For Each I want to populate the form with product name in the Label(above text field).
Hi @Haroon_Patel - Okay, perhaps you can try this and let me know if this will work for you… please let me know. (Top picture - you’ll have to add this key:value pair to the component JSON; Bottom picture - you’ll have to update the label field).
Hi @Haroon_Patel - what you actually want to do is go to the edit JSON widget in the form designer – the buttons show up when you hover over the right side of the text field. Once you open that up, the code lines #1 - 6 should already be there. You just need to add line #7 from my previous screen shot → “redrawOn”: “data”. You should not have to add anything to the logic tab. Hope this helps clarify.
Please find the sample workflow for dynamic labels in textfield.
Regarding your above query, you dont necessarily add “redrawOn” at line #7. you can add it at the end of the json. in your example, you can add it after line #10.
Please try the attached workflow and let us know. Thanks