Hide/show linklist actions

I have a link list named linklistbc , which contains 4 actions. I'm seeking a method to programmatically hide two of these actions using JavaScript. How can we accomplish this?

image

Hi there, welcome to the community

Couple of ways to do this - if your list is static then you can attach the show/hide logic into each item and they will dynamically hide when you set a variable elsewhere in your code. eg:


Or if your list might change or the logic to show/hide items is complex then I'd suggest a transformer that returns the list of actions to show and use this instead of the static list of actions eg:

1 Like