How to hide choice in field in list records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 03:32 AM
Hi,
I can hide "New" choice option from State field in incident list.
I try this with client script and ui policy with script with g_form.removeOption('state', 1); gut it doesn't work.
Somebody can help me with this?
Is it possible?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 03:56 AM
g_form API is only available in form view, not in lists. You cannot remove a choice in a list view, but you can use an onCellEdit() client script to validate the input and prevent that value from being saved if it gets selected.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 01:31 AM
Hello,
It can be achieved put this choice to inactive.
In my case, I change state to "New" choice state through server script and with inactive choice it works.
Thanks Slava for your help!