Display a "You need a profile to use this function" message when non-profile-user click CMS save button.
Hi there, I have some CMS items and got the save function working well with user profiles.
I would now like the save button for non-logged-in users to display a message that says "You need to Sign Up to use this function".
Do you know how I can do this? I would greatly appreciate any help.
N
Comments
3 comments
Hey Nicklas Glad
Thank you for posting. You can do what you are trying by adding a data attribute of data-ms-content="!members" to the element you are trying to only show for logged out members. You can see more data attributes here.
Yo Josh, thanks for the reply.
I'm trying to make the element (the save button) visible for both logged-out and logged-in members. But for logged-out members, I'd like for a pop-up to show up and say "Hey, you need to make an account to use this feature".
To do that you would need to use some custom code. You would have to stop the form from submitting with javascript and then either show or submit depending on the member. Reaching out to one of our experts would be the best option.
Please sign in to leave a comment.