Skip to content

Instantly share code, notes, and snippets.

@pasankg
Created June 14, 2018 06:48
Show Gist options
  • Save pasankg/b74b408a542fe345e45aa3c27bd92b03 to your computer and use it in GitHub Desktop.
Save pasankg/b74b408a542fe345e45aa3c27bd92b03 to your computer and use it in GitHub Desktop.
webform source
your_details:
'#type': fieldset
'#title': 'Your Details'
application_type:
'#type': fieldset
'#title': Type
choose_one_option:
'#type': radios
'#title': 'Please select an Application Type'
'#options':
OptionA: OptionA
OptionB: OptionB
'#required': true
option_b:
'#type': fieldset
'#title': OptionA
'#states':
visible:
':input[name="choose_one_option"]':
value: OptionA
company_name2:
'#type': textfield
'#title': 'Company Name'
'#placeholder': 'Your company name will be used for signage'
'#required': true
file:
'#type': managed_file
'#title': File
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment