Detecting a button's text

I am displaying a button that says either [book] or [login to book], depending on whether or not they are logged in.

I would like [login to book] to pop open a login pop up.

I’m not finding where in the code I can actually detect what the button text reads upon click. Should I instead use 2 separate buttons and hide/show the appropriate one instead of just changing the text on the button?

You can use the same button. The text of the button will be modified in condition if Current user is logged out

Add a workflow that trigger only if Current user is logged out to show the popup.
Use another workflow if Current user is logged in to book.

thanks, this worked!

1 Like

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