- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have a simple on change catalog client script as below, here entity_name is reference type variable, changes_entity_appointment_ownership is select box variable and appointments is MRVS and except for entity_name no other field gets cleared. I know appointments is MRVS and that can be the reason for it but How to resolve this for select box type variable?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @khareakshay, Could you please verify whether you have None check box selected in the Select box variable? I believe, without this checkbox value will not be cleared; instead, it will be set to default value whatever was set when form loaded.
With None, system creates blank value and clear works.
Regards,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Nishant8 ,
Yes I have none checkbox seleted.
My script works when I change the value of variable to something different but it did not work if I remove the selected value of variable. FYI the variable on which this client script works is of type reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @khareakshay
I replicated your scenario. exactly in my PDI. I created the Exact variables you mentioned in the question and also a MRVS.
Refer Screenshot Service catalog.
I created an on change client script as well. For me it worked well.
MVRS - it cleared for me in every run, both renderers, model went to empty and the grid went back to No data to display.(please refer onchange client script screenshot)
Coming to changes_entity_appointment_ownership select box, if you have none checked in the type specifications of the variable, the script should clear the option you selected and fallback to none.
But, if you haven't checked none, by default it will fallback to the question choice with the lowest order.
please find the screenshot of the onchange client script i used in my PDI. Modify according to your requirement it will work.
Please Mark Helpful, if my reply added any Value!!
Regards
Raghavendra G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @RaghavendraGund ,
My script works when I change the value of variable to something different but it did not work if I remove the selected value of variable. FYI the variable on which this client script works is of type reference.
