Skip to content

Instantly share code, notes, and snippets.

@mmahalwy
Last active February 16, 2023 20:47
Show Gist options
  • Save mmahalwy/1459564f99b7511350d766daf3564169 to your computer and use it in GitHub Desktop.
Save mmahalwy/1459564f99b7511350d766daf3564169 to your computer and use it in GitHub Desktop.
[
{
"name": "Company application",
"fields": [
{
"component": "section",
"title": "Company Details",
"description": "Section for company details.",
"name": "companyDetails",
"fields": [
{
"name": "company_name",
"label": "What is the Company Name?",
"component": "text",
"validate": [
{
"type": "required"
}
]
},
{
"name": "ceo",
"label": "What is the name of the CEO?",
"component": "text",
"validate": [
{
"type": "required"
}
]
},
{
"name": "website",
"label": "Company website?",
"component": "url"
},
{
"component": "section",
"title": "Address",
"name": "address",
"fields": [
{
"name": "address1",
"label": "Address",
"component": "text",
"validate": [
{
"type": "required"
}
]
},
{
"name": "address2",
"label": "Address 2",
"component": "text"
},
{
"name": "city",
"label": "City",
"component": "text"
}
]
}
]
},
{
"name": "is_california_relevant",
"label": "Will the contractor perform any work in California?",
"component": "checkbox"
},
{
"name": "total_compensation",
"label": "What is the total compensation of all your workers?",
"component": "number",
"validate": [
{
"type": "required"
},
{
"type": "min",
"value": 0
}
]
}
]
},
{
"name": "Employee application",
"fields": [
{
"name": "applicant_name",
"label": "Applicant name",
"component": "text",
"validate": [
{
"type": "required"
}
]
},
{
"name": "applicant_title",
"label": "Applicant title",
"component": "text",
"validate": [
{
"type": "required"
}
]
}
]
},
{
"name": "Auto application",
"fields": [
{
"name": "vin",
"label": "VIN",
"component": "text",
"validate": [
{
"type": "required"
}
]
},
{
"name": "make",
"label": "Make",
"component": "select",
"options": [
"Honda",
"Toyota",
"BMW",
"Ford",
"Dodge"
],
"validate": [
{
"type": "required"
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment