OnChange Client script on variable in a variable editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2017 09:14 PM
Hi All,
Has someone found a solution to build a client script on change of value in a variable which is part of a variable editor?
Basically, I want to dynamically hide/display variables in a variable editor based on the change of value of a Numeric Scale type variable in the variable editor.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 05:39 PM
Ok.From Jakarta we have this new feature called "Applies on Target Records" available on client scripts as well as on UI Policies which allows you to do the validations on your target tables. But if you are in previous version prior to Jakarta then you need to write a script include and a Client script to control the visibility of the variables in Variable editor as needed.
Please review the below thread where I have answered a similar query, you can use the same script with few changes as per your requirement, which should work for you.
Hide Variable Set in Variable Editor
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 07:01 PM
Thanks Shloke, but wouldn't your solution work only when I load the form? I wanted to hide/display variables as soon as user selects an option in a variable in the variable editor (onChange) without having to save or reload the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2018 11:28 PM
Can client script work on variable editor formatter?
I am using variable formatter on form but the client script which is applied on catalog item is not working in variable editor formatter.