https://experium.github.io/jobot-forms/form/:vacancyId
<Form
fields={fields}
onSubmit={values => console.log(values)}
opd='Personal Data Agreement'
postFileUrl='/file'
getFileUrl={id => `/file/${id}`}
/>
Form components
fields
: form fields arrayonSubmit
:onSubmit
handler will be called when form will be submittedopd
: personal data agreement textpostFileUrl
: post file urlgetFileUrl
: get file url function
const fields = [
{
'type': 'choice',
'field': 'k6g4lxj3',
'required': true,
'label': 'Choice',
'settings': {
'choices': [
{
'id': 'k6g4lzcn',
'value': 'Choice 1'
},
{
'id': 'k6g4m5d9',
'value': 'Choice 2'
},
{
'id': 'k6g4m6qt',
'value': 'Choice 3'
}
],
'multiple': true
}
}
];
- text
- personalDataAgreement
- dictionary
- phone
- boolean
- choice
- country
- city
- date
- file