Developer Docs

Adding the Forms extension to your application

This article will step you through the process of adding the Forms extension to your application.

Since the Forms extension will need to both add data to your application, and have a front facing UI, it will need to be included in both the Entity and User Interface diagrams. Additionally, you will also need to make sure the administrators have access to manage the forms.

Entity Diagram

  1. Create an entity which is going to hold your form(s).

    You do not need to make an entity for every form you want, just the different types. For example, you may make a Sign-up Form entity which holds forms for different sports, but then have a second entity called Newsletters to hold your newsletter subscription forms. If you have a very simple app, it may be easiest to create an entity called ‘Forms’ which holds all of them for you.

    Sign up Entity Example
  2. With this entity selected, click on the “Extension” button in the ‘Add items’ panel appearing above the entity, and select “Forms”.

    Sign up Form Entity Example
  3. You will now see the Forms extension associated with your entity.

User Interface Diagram

  1. Create a page which is going to hold your form.
  2. Add the “Form Tile” to your page.

    Adding form tile in UI Diagram
  3. With the tile selected, update the tile properties by linking it to an entity. You can select either an ‘unlinked entity’ which already has the Forms extension in the Entity diagram, or an entity with no Forms extension. Selecting the latter will add the Forms extension to that entity in the entity diagram.

    Form tile properties panel

Security Diagram

  1. Configure your users to have the appropriate permissions for your form entity. See an example below.

    A user with access to the Admin is required to have CRUD access to your Forms entity to be able to build and configure your form(s). This is the Admin user below.

    Security Diagram example

It is important to note that you do not need to give users ‘create’ permission in order for them to be able to fill out the form on the front-end. As long as they have access to the page where the form is displayed, any user is able to create a submission.

Was this article helpful?

Thanks for your feedback!

If you would like to tell us more, please click on the link below to send us a message with more details.







On this page

New to Codebots?

We know our software can be complicated, so we are always happy to have a chat if you have any questions.