Retrieve Value from HTML Fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2014 02:03 AM
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
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2014 04:24 PM
Can you copy/paste the full script here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2014 12:57 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2014 06:58 AM
Hi,
You can get the HTML field value in server side by writing the following single line code.
current.fieldname