Skip to main content

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: Object this config is the metadata that the modal uses to render the form details.
  • initialValues: Object this initialValues is the object that represents the values of the form fields.
  • completedFormCallback: Function Invoked 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'
// }
});