how to save the form using ui action in client script?

Rajkumar10
Tera Contributor

how to save the form using ui action in client script,i have one button when i click that button how the form is save?

1 ACCEPTED SOLUTION

Alikutty A
Tera Sage

Hi,

Try

g_form.save();

Thanks

View solution in original post

9 REPLIES 9

Paste your script here please?

find_real_file.png

You cannot mix client script and server script, Make the following changes.

g_form.setValue('u_status', '2');

g_form.save();

Note: Make sure your have Manager role and its spelling is correct.

Thanks!

Hi Alikutty Abdulrazak,

I used g_form.save(); in UI action my form got saved, but list view its not updating the values for example

assign to is--->  xyz Name i click on UI action-> ABC request form got changes to ABC request form and assign to is empty ....> upto this is correctly working .

Now i came back to list view and refresh the state changes to ABC request but assign To is showing xyz Name , instead of 'empty' . 

If you know help me in this.

 

Thank you,

Regards,

Pavana

 

 

dvp
Mega Sage
Mega Sage

If your button function is just to set the status, I would use server sideUI action

 

Here is the script

current.u_status = '2';

current.update();