How to get Field values of a form in a UI Action

Madhan007
Tera Contributor

I have a form in ServiceNow (not in service portal) ,which users fill the fields  and submit . I have to create a button  UI action on the submitted form , that collects the field values and updates another field on the same record. I dont understand if I have to go with client side/ server side UI action. Also To get the field values,I tried "current.variables.<variableName>" in server side UI action and g_form.getValue("variable_name") in client side UI action, but both methods does not seem to be working. please pour your suggestions on how to make this work.

1 ACCEPTED SOLUTION
2 REPLIES 2

Danish Bhairag2
Tera Sage

Hi @Madhan007 ,

 

Which form are we talking abt over here is it a Catalog Form or a Incident kind of form ?

 

if its incident kind of form then please use server side UI action & to fetch values use current.field_name.

if its catalog form, can u post some pictures to understand a bit better.

 

Thanks,

Danish