hide fields on workspace form for all members of assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 02:23 AM
Hi ,
I am trying to hide few fields for an entire assignment group.
How can I achieve this?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 02:57 AM
Hi @Community Alums ,
You can try to use client script to perform the task.
Try the following code:
function onLoad() {
// Get the assignment group
var assignmentGroup = g_form.getValue('assignment_group');
// Check if the group is the one you want to hide fields for
if (assignmentGroup == 'YOUR_ASSIGNMENT_GROUP_ID') {
// Hide fields
g_form.setDisplay('field_name_1', false);
g_form.setDisplay('field_name_2', false);
}
}
Please mark this response as correct or helpful if it helped you with your question.
Thanks,
Aryan Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 05:03 AM
hi,
I tried this script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 05:07 AM
Hi @Community Alums Try to achieve this using UI Policy. Is there any specific reason you are trying client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 05:35 AM
I tried creating UI policy with scope as workspace. In table its showing blank.
Thats why I opted client script,
Now I created UI Policy withs scope as global.table as sn_sm_finance _request.
when to apply- user is pablo
I selected view as workspace as I want to hide field for pablo on workspace form.
Still opened at field is visible for pablo on workspace form.
PFA for reference