How can I get data-ms-content conditional logic working for plan-specific content and also when users lack a specific plan?
Hey guys!
I'm trying to use the data-ms-content="!CONTENT-ID" to show a specific content only if the user doesn't have a specific plan, but it's simply not working. Thoughts?
Since this functionality is mentioned in this article I thought it was supposed to work smoothly.
Comments
4 comments
Hey Eduardo Matos, can you share your site preview link and mention which page you have enabled this feature to troubleshoot this in a better way?
With the right attribute and relevant gated content ID, it should ideally work as you expect it to.
A J It actually worked now, don't know why exactly lol
Thanks anyway
Btw, if I want to run some function based on a condition if user have plan X, is there any script already developed for this that I can use as a base?
Welcome Eduardo Matos.
Yes, I had saved a code shared by Chukwudi in the community earlier for a user who was trying to display the current member's plan name via code.
You can use this as a base code and customize it for your use-case accordingly. Hope this helps.
Sometimes you have to refresh the page once or twice (the very first time you add them) for them to start working every time in the future. That may have been the issue here
Please sign in to leave a comment.