is there an alternative for g_form.save()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 04:17 AM
on onsubmit client script i'm using g_form.save() to save the form changes in portal form widget.
But it is not working since the save button is not visible on the form.
Reason on using Onsubmit client script:-
I need to display alerts on the portal when i click on the button , so im using onsubmit client script to trigger the ui action and display the alert.
Since g_form.save() is not working, is there an alternative for saving the form.
I tried with g_form.submit() but its not saving the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 04:19 AM
Hi @caffry ,
You can use the closeRecord() method to author a UI Action that closes a tab. Use the closeRecord() method to close a tab, or save and close a tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 05:28 AM
@Community Alums does closeRecord() works on onsubmit client script?
and also i need to save the record and redirect to a different page.(Portal form widget)