Select box is listing options out of order and continues to list a changed/deleted option

sbh
Tera Guru

I tried to rename a select box option (from 'Services' to 'Services & Support', then to 'Services and Support') and something broke. It now lists 'Services' though that option no longer exists and it also lists 'Services and [or &] Support') but that option is always at the top of the list, though the other options list in order. 

Replacing the '&' with 'and' made no difference (and it should be 'and' anyway, for consistency). Deleting the old option and adding a new one made no difference. Setting a variable attribute to ref_ac_order_by=order made no difference (from KB0743165 - In Service Portal, reference variable does not honor the "Order" column of the reference...). I tried setting a reference qualifier of ORDERBYorder even though the variable isn't a reference, and that made no difference (from Change the sort order of a Lookup Select Box Variable type?). I tried deleting all the options and populating the dropdown with a client script - that made no difference either.

'Services' keeps showing up, and 'Services and [or &] Support' keeps appearing at the top of the list, no matter what. I've attached screenshots of the variable set-up (with and without options), the client script, and the dropdowns that I can't correct.

Thanks in advance for any help -

1 ACCEPTED SOLUTION

RudhraKAM
Tera Guru

Did you try deleting the variable and recreating it?

View solution in original post

3 REPLIES 3

sbh
Tera Guru

Here are screenshots of the dropdown populated by the client script and of the script.

RudhraKAM
Tera Guru

Did you try deleting the variable and recreating it?

sbh
Tera Guru

Beautiful, it worked! Thank you, @RudhraKAM !