Retrieve Value from HTML Fields

msrishilpa
Mega Expert

Hi All,

 

Is anyone knows how to retrieve value from an HTML Field. I have a field on form u_workaround

 

I have tried with current.u_workaround.getHTMLValue() function but not worked in UI action.

 

Please let anyone how to get it

3 REPLIES 3

jesusemelendezm
Mega Guru

Can you copy/paste the full script here?


jagmjavier
Kilo Expert

UI Action can run on server or client side.


From the client side there are multiple functions that you can check in the following link:GlideForm (g form) - ServiceNow Wiki


If it is running on server side you with current.nameOfDatabaseField would be enough.



Please, provide us more info regarding where you are executing it.



Regards.


salemsap
Tera Expert

Hi,


You can get the HTML field value in server side by writing the following single line code.


current.fieldname