Skip to main content
How to prefill child forms?

I want to prefill fields in the subform/nested form when I click on the + button to create a linked record.

Updated over a year ago

Prefilling a child form refers to the act of automatically filling in some of the fields in a child form when creating a new record in the linked records field. It's important to note that this feature only applies when you are creating a new record and not when editing an existing one. There are two ways to set this up.

Using Static Prefill

This method is applicable when you want the same prefill value to be applied to all records. To configure this, you can follow these steps:

  1. Child form settings

  2. Prefill section

  3. Prefill New Records

Using Dynamic Prefill

Dynamic prefill feature refers to the ability to automatically populate form fields with information from a field in the user table which is commonly a formula field. This is commonly used in cases where you have different types of users and each type is prefilled in a different way. To set this up, you need to go to:

  1. Portal Tables or Form Fields

  2. Click on the linked records field

  3. Creating and Editing Records section

  4. Turn on Allow users to create new records toggle.

  5. Turn on Prefill child form for creating records toggle.

  6. Set Prefill field

💡Note

This is commonly used if you want to prefill a field that is not included in the Form Fields. In case both setups are populated, the child form will follow the prefill from the static prefill.

Related

Did this answer your question?