How to create a record in a table from a UI builder form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 03:07 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2022 10:02 AM
Hi Sukbhir,
1) Add form component to the page and add glideform data source to the page.
2) Configure the table name and provide sysId as -1 (to indicate it as a new record).
4) Go back to the form component and configure sections and fields values as below
4) Below the form component, add a button component and configure 'Save' event for the button click event handler.