Addoption with index not working in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2018 05:19 AM
Hi all,
i am writing a onchange catalog client script to hide/remove the options in a variable depending on selection of other variable.
I am using...
GlideForm - addOption(String fieldName, String choiceValue, String choiceLabel, Number choiceIndex)
command to remove and show options in a specific order using choice index value.
it is working fine in native UI . But not working in service portal.
Options are removed/added as required but they are not getting added in the order i define using choice index in service portal.
Please let me know if anyone has faced this kind of issue.
We are currently using Jakarta Patch 6.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2019 02:28 AM
HI,
Did you find the solution for the same. I am facing the same issue and not able to resolve it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2019 09:20 AM
We fixed this issue by using
g_form.clearOptions()
And then using g_form.addOption() to fill in our choice list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 02:09 AM
Thanks Justin, for the help. I tried the same and its working.