How to create a record in a table from a UI builder form?

Sukhbir Singh2
Giga Guru

Hi

I am creating a UI builder page and then loading it as a popup through g_modal.showFrame(). It works and loads an empty form using the "Form - fields" component.

How can i read fields from the form and use them to create a new record in the table referenced by the form?

I do saw a link to update a record using "Form" component.

https://pishchulin.medium.com/now-experience-ui-framework-forms-a7dc40ff94d7

But i want to create a new record, how can we do it using "Form" or "Form-field" component.

Below is the pop up being loaded.

I want to create a record from the below fields and then trigger some code on the insert.

Thanks

find_real_file.png

1 REPLY 1

Kopresh
Tera Contributor

Hi Sukbhir,

 

1) Add form component to the page and add glideform data source to the page.

find_real_file.png

 

2) Configure the table name and provide sysId as -1 (to indicate it as a new record).

find_real_file.png

4) Go back to the form component and configure sections and fields values as below

find_real_file.png

4) Below the form component, add a button component and configure 'Save' event for the button click event handler.

find_real_file.png