How can i hide field choice option in List page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 10:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 10:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 10:43 PM
Create OnCellEdit Client Script:
select field - State
script:
function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
var saveAndClose = true;
//In Place of "3" add your choice value
if ((newValue == 3) && (g_user.hasRole('admin'))) {
saveAndClose = true; // allow to select choice
} else {
alert('Only admin can select this choice');
saveAndClose = false; // donot allow to select choice
}
callback(saveAndClose);
}
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 10:44 PM
Hi @Ankit Kumar6 What do you mean List Page? Brief more about your issue?
Some screenshots would be great to understand your issue?
You can remove field choice option using below syntax in Client Script
g_form.removeOption('Fieldname', 'choiceValue');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 10:49 PM
Please follow this thread it will helpful to you
Removing or Disabling Choice List Options
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!