The CreatorCon Call for Content is officially open! Get started here.

is there an alternative for g_form.save()

caffry
Kilo Guru

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

 

 

 

 

2 REPLIES 2

Community Alums
Not applicable

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.

 

 

@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)