how to save a record using UI action. (using script)

Afrith Shariff
Tera Guru

i want to add save button on a form but the g_form.save(); dosent work please guide me... 

4 REPLIES 4

Musab Rasheed
Tera Sage
Tera Sage

Hello,

You should use 

current.update() for that

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Aman Kumar S
Kilo Patron

If you are looking to save on server side:

use:

current.update();

action.setRedirectURL(current);// if you want to remain on the same page after form saves

Best Regards
Aman Kumar

thnx for action.redirect

@Ravi Borade 

Awesome!
Feel free to mark correct.

Best Regards
Aman Kumar