- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 09:02 AM
I m working on a service catalog item. I have a list of variables which i need to make visible and mandatory on submit for people with certain roles. How to do that using UI policy..
In the UI policy, i selected, "Applies on Requested Items" and removed "Applies on Item Catalog view" checkbox.
Added the UI action as "Visible" and "Mandatory" true
But it doesnt help
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 10:23 AM
I have done the changes. it is wrkg fine now.
Note: kindly change the password. Someone might mis use it.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 09:53 AM
Here is my personal instance...
User ID is admin
Catalog Item name : Test Catalog Item
Catalog client scripts name is "Test Client Scripts"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 10:01 AM
just paste the below code. it shud work
if(!g_form.isNewRecord()) // instead of g_form.isNewrecord()
{
g_form.setDisplay('code_is_consistently_formatted',false);
}
else{
g_form.setDisplay('code_is_consistently_formatted',true);
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 10:11 AM
I m doing the same.. now i changed a bit but in the catalog item view, still the variable appears...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 10:12 AM
If you have access to my personal instance.. you can easily identify the issue. sorry to disturb.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 10:15 AM
you have to give me password as well
Harish