Remove field from LIST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2021 11:08 AM
Hi,
can someone help me on how can we remove field from default list view.
i tried to check in system ui->Views->default views-> labels->selecting table name->list elements
but didn't get all the fields there.
i wanted to remove one field from the default view instead of using ACL's
- Labels:
-
Activity Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2021 11:29 AM
yes Prasad.
We don't want user to select domain field from the list by configuring. wanted to remove from view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2021 11:47 AM
You would either need to customize the client script in 'list_mechanic' UI Page (which I strongly recommend against, lest you should get into trouble after an upgrade) or create a global UI script (which is not a very elegant solution either).
In any case, remember to wrap your code into a try-catch block. And should you choose to go for a UI script, make sure you parse the URL and use an 'if' block to prevent the code from being executed on other pages across the system.
I think you need to write script like this
var opt = $$("select#slush_left option[value=category]");
gel('slush_left').remove(opt[0].index);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2021 11:55 AM
If those fields are not used for any purpose in your instance, you can either deactivate them in the Dictionary or use an ACL to make them readable only by admins (or another role your users do not have).
Step 1: Personalize List and remove the target field from selected box.
Step 2: Write a add_to_list ACL on the field.
So it will not available to anyone but admin.