Resources
Use Resources as data objects within your forms or application
Last updated
Use Resources as data objects within your forms or application
Last updated
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.
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.
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.
New entities can be created, read, deleted, and queried like you would any other database collection.
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.
Click here for an in-depth explanation of how Resources and Forms work
Create a Resource anytime a Data Object reference is needed for your applications or forms.
Use the Data Import feature to easily establish a Resource data object
Setup Cascading Select Dropdowns using Resources and Select Resource fields
Reference User Resource data for User Authentication
Use Select Resource fields to reference Resource field data on your forms
Use the Data Source component to pull in large amounts of data from your Resource to fields on your Form.
Resources can also be used to create and house pre-defined fields called Existing Resource Fields