Remove field from LIST

MounikaS
Tera Contributor

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

find_real_file.png

7 REPLIES 7

yes Prasad.

We don't want user to select domain field from the list by configuring. wanted to remove from view

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);

find_real_file.png

 

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.