Create Form
Copy code
        

      
Helper Functions: Just copy and paste the sample JSON code in the editor, inside an array of JSON objects.
{ "type": "textfield", "label": "Firstname", "placeholder": "Enter your firstname" }
{ "type": "textarea", "label": "Address", "placeholder": "Enter your Address", "row": 4 }
{ "type": "radio", "label": "Gender", "buttons": [ {"name": "male", "value": "male", "label": "Male"}, {"name": "female", "value": "female", "label": "Female"} ] }
{ "type": "select", "label": "Salary", "options": [ {"label": "2K usd", "value": "2000"}, {"label": "3K usd", "value": "3000", "disabled": true} ] }
For conditional rendering, just add this JSON object as an "isShownWhen" property in the JSON object field.
{
 "value": "harold",
 "elements": [] // this will be the array of JSON
    objects that will be shown when the value is
    equal to the value property
}