G_form.getoption is not working in portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2019 03:04 AM
Hi All,
In catalog client script if g_form.getOptions is not working in service portal but its working fine in WorkerUI.
Please suggest any alternative of these method to be used in service portal.
Many thanks in advance,
Parul

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2019 03:24 AM
Hi Parul,
here you will find a possible solution for doing it:
g_form.getOptions not working in the portal. alternative
However, the getOptions is NOT supported in the Service Portal, so you have to find an alternative, please try the above suggestions.
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thank you
Cheers
Alberto

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2019 05:39 AM
Any update on this?
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thank you
Cheers
Alberto

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2024 06:17 AM
Hi,
What about using g_form.getDisplayValue() to get choice Label in current user Language instead of g_form.getOption() since it's not working on Service Portal ( for now...) ?
from the Old wiki :
var choiceValue = g_form.getValue('category'); var choiceLabel = g_form.getOption('category', choiceValue).text;
turn into
var choiceValue = g_form.getValue('your_field_Name'); var choiceLabel = g_form.getDisplayValue('your_field_Name');