Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added documentation to create a form using JSON with minimum fields. #20

Merged
merged 5 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,16 @@ To export a form:

Exporting forms is a great way to copy an existing design or share it with others.


## Creating a form using JSON with minimum fields.
CHEFS Form.io platform provides a visual form builder that lets you drag and drop form elements, and automatically generates the corresponding JSON schema for you. Every component and layouts in CHEFS are represented as JSON in the background.
bhuvan-aot marked this conversation as resolved.
Show resolved Hide resolved

If for any reason if you would like to create the forms using the JSON Schema instead of visual form builder, below are some JSON schemas for some components with minimum mandatory variables and full schema.
bhuvan-aot marked this conversation as resolved.
Show resolved Hide resolved

|Form |Minimum Schema|Full schema|
|---|---|---|
|[Basic components with Layouts](https://submit.digital.gov.bc.ca/app/form/submit?f=0da54bf6-2951-4579-8426-76565137f395)|[Minimum Schema JSON file](examples/minimum_schema_JSON_file.json)|[Full Schema JSON file](examples/full_schema_JSON_file.json)|

Once the desired JSON file is ready follow above metioned [guidelines](#import-a-form-design) to import it into the form designer.
bhuvan-aot marked this conversation as resolved.
Show resolved Hide resolved
***
[Terms of Use](Terms-of-Use) | [Privacy](Privacy) | [Security](Security) | [Service Agreement](Service-Agreement) | [Accessibility](Accessibility)
Loading