Resources

Use Resources as data objects within your forms or application

What are Resources?

Resources are a very important piece of the <form.io> platform and are used to define data objects within a project. These Resources can be referenced within other forms or within your application to create complex nested resource relationships. Once a resource has been created, it can then be used as a RESTful database within your application where new entities can be created, read, deleted, and queried like you would any other database collection.

Why should I use Resources?

Resource objects not only define the API and back-end data model but also the front-end UI, meaning they can also be utilized as a normal form. These Resource data models can be used within other forms making it simple to create a data collection and reference that data in your form. Use a Resource to reference User credentials within your application for authentication, collection of reference data to utilize in other forms or an application, dynamic select filtering, etc.

How do I use Resources?

Resources are created the same way as forms by using the Drag and Drop form builder. Once a Resource Form is in place, define the Data Object by making submissions against the Resource.

Resource created for Regional Manager database and reference point

New entities can be created, read, deleted, and queried like you would any other database collection.

Create your data object by making submissions against the Resource

After data has been submitted, the Resource will now be established and ready to be utilized as a RESTful database within your application or other forms.

Using a Select Resource field is one way you can reference the Resource data object

Click here for an in-depth explanation of how Resources and Forms workarrow-up-right​​

Best Practices & FAQ

Last updated

Was this helpful?