# Custom

TIP

For this form, the response will be an array which will have the response for each item of the form.

# Custom Form

To send a form of the type of "custom_form", the array containing the data of this form must contain the following keys:

- Custom Form Structure
  ['type']     The form type as string, this will be 'custom_form' for this form type
  ['title']    The title of the form as string
  ['content']  The items that will be in the form as array

- There are different items you can add to the ['content'] of the form, each type has 
different requirements for their arrays:

- Labels
  ['type']     The type of the item as string, this will be 'label' for this item
  ['text']     The text of the item as string
This item returns NULL.

- Dropdowns
  ['type']     The type of the item as string, this will be 'dropdown' for this item
  ['text']     The text of the item as string
  ['options']  The options of the dropdown as array
  ['default']  The option that will be chosen by default as int, 0 being the first option
This item returns the option chosen as int, 0 being the first option.

- Inputs
  ['type']     The type of the item as string, this will be 'input' for this item
  ['text']     The text of the item as string
  ['placeholder'] The text inside the input as string
  ['default']  The text that is in the input by default as string
This item returns the text that was set in the input as string.

- Sliders
  ['type']     The type of the item as string, this will be 'slider' for this item
  ['text']     The text of the item as string
  ['min']      The minimum value for the slider as int
  ['max']      The maximum value for the slider as int
  ['default']  The default value that the slider will be on by default as int
This item returns the value chosen in the slider as int.

- Step Sliders
  ['type']     The type of the item as string, this will be 'step_slider' for this item
  ['text']     The text of the item as string
  ['steps']    The steps of the step slider as array
  ['default']  The step that will be chosen by default as int, 0 being the first option
This item returns the step that was chosen as int, 0 being the first step.

- Toggles
  ['type']     The type of the item as string, this will be 'toggle' for this item
  ['text']     The text of the item as string
  ['default']  The default value for the toggle to be on as bool
This item returns whether the toggle was enabled or disabled as bool.
ON THIS PAGE