Unable to make button trigger log in pop up; HTML

Hi!

Repost to clarify, update. I’m using HTML to build a button that triggers a popup but need it to only open if the user is logged in. Is there a way I can edit the HTML so the button is only clickable when logged in? Possibly triggering the sign in pop up or text that tells the user to log in. Here is a snippet of the current HTML below:

<button
onclick=“bubble_fn_button_tapped('Parent group’s Doctors’s unique id”)">

Thanks!

You could add in the button tag:

Current User is logged in :formatted as text

Then for no it would be blank, for yes it would be “disabled” (no quotes)

I would also have the javascriptToBubble element have a conditional for the Current User to be logged in, as disabled buttons are pretty easy to manipulate.

This topic was automatically closed after 70 days. New replies are no longer allowed.