Introduction
Custom forms enable lenders to create tailored questions that your customers must answer when applying for loans or services. This flexibility ensures lenders gather all the relevant information for better decision-making. These forms are structured in JSON, which is easy to customize and supports various input types, validations, and actions.
This guide provides an overview of the form structure and steps to create a custom form.
Understanding the JSON Structure
The JSON form is divided into the following components:
1. Meta Section
This section defines the form's metadata:
name
: The form's name.description
: A brief explanation of the form's purpose.version
: The form's version.url
: The platform link where the form is hosted.status
: Indicates if the form is active.
2. Pages
The pages
array contains multiple sections of the form. Each page has:
name
: The page identifier.title
: The page title displayed to borrowers.description
: A summary of the page.actions
: Buttons like "Continue" or "Cancel" to guide borrowers.
3. Sections
Each page contains sections grouped logically. A section includes:
name
: The section identifier.description
: A brief introduction.fields
: The input fields borrowers must complete.
4. Fields
Fields define the actual input elements. Key attributes include:
id
: Unique identifier.name
: Field name.type
: Input type (e.g.,short_text
,select
,number
,date
).label
: Field label displayed to users.description
: A short explanation of the field.validation
: Rules borrowers must follow.options
(optional): Predefined choices for select fields.
Example:
5. Validations
You can enforce specific rules to ensure proper data collection:
required
: Ensures the field is mandatory.minimum_length
/maximum_length
: Controls text input length.minimum
/maximum
: Sets numeric limits.allowed
: Specifies allowable file formats (for uploads).multi_select
: Determines if multiple options can be selected.
6. Actions
Define how users navigate the form:
- Continue: Moves to the next page.
- Cancel: Discards current entries with a confirmation prompt.
- Submit: Finalizes the form.
Input Types
Here are some input types you can set up:
- Short Text: For single-line text.
- Select: For dropdown or multiple-choice options.
- Number: For numeric inputs.
- Date: For date inputs.
- Phone: For phone number inputs
- Email: For capturing email addresses.
Image Upload:
For uploading images like IDs or photos.
Document Upload
For uploading documents like proof of income or identification.
- URL: For links or references.
Example Form in JSON
Below is a simplified example of a form:
Tips for Customization
- Clearly define field labels and descriptions to avoid confusion.
- Use appropriate validations to ensure high-quality data.
- Group related questions into logical sections.
- Test the form to verify user experience and data accuracy.
By following this guide, you can create effective and user-friendly custom forms to collect the data you need.