Client Script not working on Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2017 10:03 AM
Hi Experts,
I understood, that normal client scripts will not work on service portal ... I also found some posts regarding this issue, but I don't get it. How to achieve ... you anyone please tell me in more detail what to do?
My on client scripts is something like this ...
function onLoad() {
if (g_form.getUniqueValue() !== g_user.userID)
{
g_form.removeOption('u_abc', 1);
g_form.removeOption('u_def', 1);
}
}
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2017 12:50 AM
what does
(g_form.getUniqueValue() !== g_user.userID
means?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2017 12:53 AM
Hi William
Do you mean in Javascript or in the logic of this line of code ?
Cheers
R0b0