Dynamic Input Form Service
The Dynamic Input Form Service integrates with Digidecks Dynamic Input Form.
Methods
openDynamicInputForm(config, initialValues, completedFormCallback)
Return Value: Object
- Returns the form data from the dynamic input form modal response.
Options:
config: Objectthis config is the metadata that the modal uses to render the form details.initialValues: Objectthis initialValues is the object that represents the values of the form fields.completedFormCallback: FunctionInvoked getting passed the updated formData from the Dynamic Input Form.
Code Example
formData this is the key/value pairs of your component options inputs form result.
digideckCore.dynamicInputFormService.openDynamicInputForm(config, initialValues, (formData) => {
// formData Example
// {
// firstName: 'Jane',
// lastName: 'Doe',
// email: 'fakeemail@example.com'
// }
});