Hi Guys, How we can disable "Make Copy" option in ...
# suitescript
a
Hi Guys, How we can disable "Make Copy" option in the actions menu on Vendor record?
i
does it need to be via script? should be doable through a workflow
a
@Israel Gonzalez how we can do it via script?
i
havent done it myself but i would start here
a
@Israel Gonzalez if i have to do the same thing via workflow... how we can do it?
i
New Workflow applied to Vendors New Action>Remove Button
a
Okay @Israel Gonzalez, let me try it
@Israel Gonzalez "Make Copy" is not showing in Button Id
How can I do this?
i
might have to try it the script method then
a
Thanks for your help @Israel Gonzalez. One more question, how we can disable or remove "Remove" link on Vendor record - Relationship subtab
i
i think thats more of a permission issue, does the role have full access on the contact record?
a
that is admin access
i
if you are trying to hide on admin then i think it will require a client script, if you are trying to hide on a different role then you can try changing the permissions for the contact record
a
@Israel Gonzalez How can I do via client script?
i
actually since are you trying to hide on view it's probably going to be a user event script calling a client script, and dont think their are native SS functions to hide that so will need to do via javascript
a
@Israel Gonzalez do you know any javascript function which will hide this?
i
good question, doesnt look like it doesn't have an id, so youll need to craft a selector to get that value and then change/remove the link
a
@Israel Gonzalez sorry to disturb you but how can I do this?
i
cant think of an easy way for this, ill check to see if i have some code where ive done similar on other records, typically the permission would take care of that,
a
Okay @Israel Gonzalez
@Israel Gonzalez my team is asking one more question how we can disable "Add" button on address subtab
i
similar issue as the other one, would typically be done by permissions
a
Okay @Israel Gonzalez, thanks for help. if you found anything. please share with me
c
@AB Have you looked to see if "Make Copy" appears as an action you can toggle off in the custom entry form deployed to the Vendor record?
a
@Clay Roper yes, but it's not showing on custom form
👍 1
so that's why I developed a script to do that