- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2014 11:54 AM
I'm working on a basic catalog request form, which has a few simple UI policies that show/hide fields based on previous selections going down the form. One particular field has 6 choices. The UI Policy created says If this field is one of these 3 choices .. At which point I have the policy hiding 5 fields, reverse if false. My problem is that on load, the field that drives the policy is set to None -- yet 2 of the 5 fields show up still. If I flip the main field to one of the 3 choices, they all show up again. If I flip it to NOT one of the 3 choices, the form only hides 4 of the 5 fields. So very strange, and yet I can find no difference that would cause this. Any thoughts?!
Things I've tried already:
- Disabled all other UI policies on the item
- Started this process using variable sets, then went to just straight variables -- did not fix the issue.
- Other UI policies on the form work when enabled.
We are using the Calgary release.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2014 12:32 PM
This has been fixed. I spoke with one of our consultants and the issue was around the few fields that were being set as mandatory on the variable level instead of the UI Policy level. They refused to hide because they were mandatory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2014 12:08 PM
Is there more than one ui policy controlling/affecting the variable that is having an issue? I have encountered this in the past with client scripts. One client script says up, the other says down and the variable stops playing nicely.
To answer your question about how to troubleshoot. You should start by debugging. I like to add alerts to sections of code that I think are causing the issue... alert("about to start lookin up user..."); alert("user found, setting variable to this value..."); alert("variable should be THIS, is it?"); I find alerts to serve as good breakpoints in the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2014 12:10 PM
During my initial troubleshooting I was thinking along those lines -- however I disabled all other scripts and policies on the catalog item and the issue persists
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2014 12:12 PM
What is the variable type for the variable that isn't working correctly? Also, what methods are you using to get/set the variable?
Would you mind posting your code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2014 12:18 PM