so i make a survey form and the data/question is from api every data item has key 'required' if the question answer is not filled in yet the button to go to the next page is unavailable. How to make the if else condition for it ?
The form
The data
{
"success": true,
"msg": "OK",
"data": [
{
"id": 4,
"label":
"Is this a test ride period or demonstration period in this PoC?",
"required": true,
"options": [
{"label": "Test ride", "value": "1"},
],
},
{
"id": 3,
"label": "Have you answered this survey before?",
"required": true,
"options": [
{"label": "No, for the first time", "value": "1"},
],
}
]
},
