- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2016 12:51 PM
Hi all,
For some reason, one of the fields I am trying to add to the Portal View just does not show up on the requested items form, as if a UI policy is restricting it.
There is no UI policy that I can find that's doing that.
Any ideas?
Harel
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 07:14 AM
Hi all,
So I solved this by using a script instead of the regular conditions.
Andraz, I was not using dot-walking in the condition - I think it does not work in Ui policies.
Pradeep, the view field was already cleared, so that was not it as well.
If anyone needs, here is the script I used (cleared all condition from the UI policy):
function onCondition() {
var catItem = g_form.getParameter('sysparm_id'); //the id of the catalog item.
if(catItem == '670806ce09963d402fc62090a83df074') {//catalog item is AD Preparation
g_form.setReadonly('u_ad_account', false);
g_form.setDisplay('u_ad_account', true);
} else if(catItem == 'edf0574939e86540b253721d0f834927') { //catalog item is Web Preparation
g_form.setReadonly('u_ad_account', true);
g_form.setDisplay('u_ad_account', true);
} else {
g_form.setReadonly('u_ad_account', true);
g_form.setDisplay('u_ad_account', false);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2016 02:02 PM
Hi Pradeep,
That's what I am doing; I am already using the condition field to search for the catalog item.
What I don't understand is why it is not applied to the the Portal view, if "global" is checked,
harel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2016 02:05 PM
Make sure view field is blank. Uncheck Global field and make sure it is set to null and then again set global field to true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 05:59 AM
HI Harel,
Can you please also check your UI policy condition that you are not checking catalog Item value using dot-walking in the condition,
and also, check if the catalog Item field is added to the form in Portal view as well.
Othervise the UI policy may not be able to access the Item field value when doing condition check and possibly always evaluate as false on Portal view.
Best regards,
Andras
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 07:14 AM
Hi all,
So I solved this by using a script instead of the regular conditions.
Andraz, I was not using dot-walking in the condition - I think it does not work in Ui policies.
Pradeep, the view field was already cleared, so that was not it as well.
If anyone needs, here is the script I used (cleared all condition from the UI policy):
function onCondition() {
var catItem = g_form.getParameter('sysparm_id'); //the id of the catalog item.
if(catItem == '670806ce09963d402fc62090a83df074') {//catalog item is AD Preparation
g_form.setReadonly('u_ad_account', false);
g_form.setDisplay('u_ad_account', true);
} else if(catItem == 'edf0574939e86540b253721d0f834927') { //catalog item is Web Preparation
g_form.setReadonly('u_ad_account', true);
g_form.setDisplay('u_ad_account', true);
} else {
g_form.setReadonly('u_ad_account', true);
g_form.setDisplay('u_ad_account', false);
}
}