How can i capture complete form data into json like as below
{“size”:{“type”:“input”,“value”:“123”},“color”:{“type”:“color”,“value”:“123”},“model”:{“type”:“input”,“value”:“123”},“price”:{“type”:“text”,“value”:“123”}}
How can i capture complete form data into json like as below
{“size”:{“type”:“input”,“value”:“123”},“color”:{“type”:“color”,“value”:“123”},“model”:{“type”:“input”,“value”:“123”},“price”:{“type”:“text”,“value”:“123”}}
You make a workflow on Form submit that creates a object in the format that you wish and then you use JSON.stringify to correctly paste into text
This is a dynamic form based on the json i am displaying the form fields now i want the same json to be submitted back
Sharing few more details could some one help me here
I have rendered the form dynamically based on data.json and conditional rendering
if type==‘input’ then it will display input field
if type==‘text’ then it will display text field
Now i want to submit the form i need to create a json and submit but am not able to find how can i bind these form fields to variables
Can you Please help me here if anything am doing wrong ?
you need to use the “on change” workflow of the inputs to sync the values with a global variable. it’s the same principle of this example or this example or this example with multiple forms