- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2014 10:03 AM
Hi guys,
I have created a UI policy to hide (stop a value from being selected) on a field called 'Subtype' e.g. value 'Minor' when the value of 'Domain' field is e.g. 'Deacons' - while this works if the Domain chosen initially is 'Deacons' if it is then changed, the 'Minor' Subtype value is still unselectable (when it should be selectable). Likewise if I choose another Domain initially and set the Subtype as 'Minor' I can then change the Domain value to 'Deacons' - meaning the Subtype value which should not be selectable is!
I think this is because I have it onLoad in the UI Policy - in which case I need it more dynamic, i.e. whenever the value of Domain field changes, do I therefore need a client script instead?
Another option would be to force the value of Subtype to always be 'Standard' when the Domain is 'Deacons' but I'm unsure what is easier.
Any/all help much appreciated as always.
Cheers,
Daniel
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2014 04:46 AM
whatever value you want to set use the below line in 'execute if true' and 'execute if false' section,
g_form.setValue('subtypeVariableName','whateverValueNeeded');
place this as the last line in the corresponding sections
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2014 05:51 AM
Thanks for the clarification Andrew - what you're saying does make sense to me now.
However I think we are OK to proceed as is as although there are a lot of combinations this is an 'anomaly' in that there are no other customisations to consider when it comes to these choices on our change form i.e. everything is set (and soon this customisation will likely be removed anyway, i.e. everyone will be seeing the same choices).
From my (limited) understanding the UI Policy as it stands will not be affected by any additions to the choice lists in Domain, Type or Subtype; The UI Policy would only need updating if we were to find that other Domains wanted to restrict what they could log changes against, but this would be a regression in process for us as we aim to be more consistent globally.