Hi,
I am trying to build a form with conditional fields that depend on a radio selection.
In other words, if user selects one radio option, the conditional fields would show up; on the other hand, if the user selects the other radio option, the conditional fields would hide.
This is the markdown file I’ve done so far:
form:
name: form1
fields:
- name: radio_field
label: Have you ever changed your name?
type: radio
options:
'0': 'No'
'1': 'Yes'
validate:
required: true
- name-change-condition:
type: conditional
condition: "[[CONDITION HERE]] ? 'true' : 'false'"
fields:
- name: new-firstname
type: text
- name: new-lastname
type: text
Is this possible using the conditional fields on the form plugin?
Thanks in advance