- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2017 08:18 PM
Hi There,
I would like to make some fields read-only when a change reached the authorized state. This should apply to all users except those in the change managers.
i created a ui policy which applies when status is one of (authorized, scheduled, implemented, review and closed).
Unfortunately, the condition is not working, however, if i remove the condition will make the fields read-only for everyone.
additionally i added a script:
execute if true:
function onCondition() {
if (g_user.hasRoles('change_manager') == false) {
g_form.setReadonly('short_description',true);
g_form.setReadonly('justification',true);
g_form.setReadonly('implementation_plan',true);
g_form.setReadonly('risk_impact_analysis',true);
g_form.setReadonly('backout_plan',true);
g_form.setReadonly('test_plan',true);
g_form.setReadonly('start_date',true);
g_form.setReadonly('end_date',true);
}
}
i would prefer to change conditional for membership group instead.
any help will be appreciated.
max
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2017 10:41 PM
Hi,
This can be done using the UI Policy as shown below:
In the Run Script section of UI Policy write the below script:
Script:
function onCondition() {
if(!g_user.hasRole('change_manager'))
{
g_form.setReadOnly('short_description',true);
g_form.setReadOnly('description',true);
}
}
This is working fine for me in my personal instance. Please test the same from your end too.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2017 08:37 PM
hi Max,
You can use ACL to configure for different groups. You will need elevated admin role to do that though.
Regards.
Rajan Mehta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2017 11:10 PM
hi Rajankumar,
thanks for your time and help. i used Shloke's solution.
regards,
max
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2017 10:32 PM
Hi Max
can u pls follow this link
Incident Form creation restrict to particular groups
I hope this may helpful to u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2017 11:09 PM
Hi Kuruva,
thanks for your time and help. i used Shloke's solution.
regards,
max