Created
September 5, 2021 15:59
-
-
Save vitohuang/6628172d201cf7e350c1e084091cc3cc to your computer and use it in GitHub Desktop.
Defined form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
type: 'textInput', | |
label: 'Name', | |
name: 'Name', | |
value: '', | |
description: 'This is description', | |
placeholder: 'Please input your name', | |
required: false, | |
id: 'textInput-7' | |
}, | |
{ | |
type: 'email', | |
name: 'Email', | |
label: 'Email', | |
value: '', | |
description: 'This is description', | |
placeholder: 'Please enter your email address', | |
required: true, | |
id: 'email-8' | |
}, | |
{ | |
type: 'textInput', | |
label: 'Subject', | |
name: 'Name', | |
value: '', | |
description: 'This is the subject', | |
placeholder: 'Plese input the subject', | |
required: true, | |
id: 'textInput-9' | |
}, | |
{ | |
type: 'dropdown', | |
name: 'DropDown', | |
value: '', | |
label: 'Please select where you bought it', | |
description: 'This is description', | |
options: [ | |
{ | |
id: 'Amazon-1', | |
value: 'Amazon', | |
label: 'Amazon' | |
}, | |
{ | |
id: 'eBay-2', | |
value: 'eBay', | |
label: 'eBay' | |
}, | |
{ | |
id: 'local-shop-2', | |
value: 'Local shop', | |
label: 'Local shop' | |
} | |
], | |
required: false, | |
id: 'dropdown-10' | |
}, | |
{ | |
type: 'phone', | |
label: 'Mobile', | |
name: 'Phone', | |
placeholder: 'Please enter your mobile number', | |
value: '', | |
description: 'This is description', | |
required: false, | |
id: 'phone-11' | |
}, | |
{ | |
type: 'button', | |
name: 'Button', | |
value: '', | |
label: 'Submit', | |
description: 'Submit it means you agreed with our policy', | |
required: true, | |
id: 'button-12' | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment