How to 'refresh' choice field via catalog client script in serviceportal?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2018 03:34 AM
Hi,
I have a choice field in a cat alog item in the service portal. Via changes of other fields, the choices might get extended via ajax call with alternative options .... . No I need to be able to clear those choices (that are not physically in the choice list table) after a change of other fields. This need to happen via a catalog client script ... something like g_form.refreshOptions('field'); would be what I'm looking for ...
Variable Attributes (ref_qual_elements) are no option, as the added Otpions still remain in the available choices. Also removing the options will not work, as I do not know what the options might be ... So just the "original" options should be reloaded ..
Thanks!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2018 04:43 AM
Have you tried to set the Value to nothing
g_form.setValue('my_cList','')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 12:28 AM
Thnx. But not working.
The old option is still part of the choice list ;-/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 12:31 AM
Hi
For this maybe you need to reload the page to acheive something like this .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 12:40 AM
Reloading the page can't happen, as there are many variables filled within the process. So on change of some of them, the choice list need to get 'refreshed' ... .
The only option is nearly see is to remove all options and just manually add the valid once ... but this seems to be not realy a good practise ...