OnChange Client Script to Clear Form when "Select tool" value is changed Not Working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2018 01:56 PM
For some reason the form does not clear the values when I move from one value to another value under "Select Tools" - it only works when i clear that value.
For example, if i go to choice 1 to choice 2 - some of my UI policies do not work and then the values do not clear.
If i click x and clear the "select tools" field - then select choice 1 -- it works.
Has anyone had this type of issue before?
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2018 12:09 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2018 01:07 PM
UI Policy: When a tool is selected, show the fields you need to see. Make sure 'Reverse if False' is selected as it will reverse the logic automatically without you having to write another policy to handle the opposite logic.
If you 'include none' in your dropdown, that's a good indicator to say, when 'none' is selected, do not show those variables. When you're "clearing the dropdown", make sure to just set it back to the option 'none'.
So, if 'DNA-Tableau' is selected, that would be your UI Policy's condition. When that's true, make the other variables visible and check the 'Reverse if false' checkbox to reverse this logic and hide the variables when it's not selected.
Hope this answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2018 07:42 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2018 09:03 AM
As I stated in my previous reply about your onChange script, you need to remove the unnecessary "or" next to the newValue.
If you are trying to hide a field based off another field's value, I would again advise that you create a UI policy to achieve this instead. Please mark my answer correct as it answers your question, although you have not made the advised changes.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2018 10:37 PM
Hi,
You can try replacing line 2 with " if (isLoading) {".