You need to sign in to do that
Don't have an account?
hide action column
Hello,
I am tryig to hide the action column for cases on my related lists.

We use ServiceMax and users are required to modify cases via the servicemax SFMs, not the default salesforce links. I found this bit of code:
Any help would be greatly appreciated, thank you!
Leah
I am tryig to hide the action column for cases on my related lists.
We use ServiceMax and users are required to modify cases via the servicemax SFMs, not the default salesforce links. I found this bit of code:
<style type="text/css"> .actionColumn {display:none; visibility:hidden} </style>In a different spot on the forums. I'm not sure if this would serve my purpose however, and even if it would, I'm not sure where I would put it. I want the change to affect ALL related lists, and I don't mind if it is applied to all users, although I would prefer it to be on a profile basis.
Any help would be greatly appreciated, thank you!
Leah
You can paste the below code in your existing vf page itself.
All you need is the below line of code to be pasted after your apex:page tag.
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"/>
<script>
$(".actionColumn").css("display","none");
</script>
If you got any problem in doing so, do paste the code, it would be easy for me to debug further.
Regards,
Rabindranath
All Answers
It is not possible to remove the action column from the related list through standard options.
For this you need to design your own visualforce page .
Already for the same functionality, we have an idea posted 4 years back.
https://success.salesforce.com/ideaView?id=08730000000ksRdAAI#
Regards,
Rabindranath
If you make the Edit & Delete Checkbox unchecked at the Profile level, it will disable this particular edit and delete link.
Go to Profiles - Select the desired Profiles - Naavigate to object Settings- Edit - There you will find out checkboxes(Read,Write,Edit,Delete) - Uncheck the edit & Delete Checkbox
Mark it as solved if it answere your query.
Regrds,
Rabindranath
I am aware that I will need to use a VF page to achieve this. I am already using VF pages as the landing pages for all of my object in order to hide the 'recent' view. (This had a non-removable 'New' button on it, which nessecitated using the VF page to hide it)
If I am able to utilize this pre-exsisting code to remove the 'Actions' column that would be amazing. I am not a well versed programmer however, so I am not sure where to start. If anyone has any suggestions for me on how to construct this VF page it would be greatly appreciated!
Leah
Please find the below code snippet which helps in removing the action column
On execution of above code, below would be the result :
Do let me know if you require any further help on this.
Regards,
Rabindranath
Thanks again!
You can paste the below code in your existing vf page itself.
All you need is the below line of code to be pasted after your apex:page tag.
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"/>
<script>
$(".actionColumn").css("display","none");
</script>
If you got any problem in doing so, do paste the code, it would be easy for me to debug further.
Regards,
Rabindranath
This is just removing the 'recents' view and sending the user directly to their last viewed list view. I tried adding the code you provided within the brackets, and outside of them and I recieved an error both times saying that the code was not well formed.
If you can post the code and the error recieved, it would be helpful in debugging further.
Regards
Rabi
And here is the error:
Error: CasesHome line 2, column 2: The markup in the document following the root element must be well-formed
Error: The markup in the document following the root element must be well-formed.
in the first line you should not close the apex:page tag with />
remove the " / "
Regards,
Rabindranath
But what exactly are you trying to do.Because your initial requirement was to hide the Action column .and thats what the bove piece of code does.
Let me know your requirement in detail to code it from scratch.
Nothing is happening.
Instead of action tag if you make use of the below apex code in the first line, it serves the purpose.
<apex:page tabStyle="Case">
Let me know if it resolves it.
Regards,
Rabindranath
regards,
rabi
It would be great if we can get over a GTM and debug this issue.Since replicating the issue in my instance is quite difficult.
Do share me your email address and will take it from there.
Regards,
Rabindranath
Could this be applied to the alphabet shortcuts on a custom list view? If yes, how so?
Thank you very much !
Stephen