Click Login button on page load but signup form displays

Hi, new user here struggling with something weird. I have a page with a header from the component library and also a signup/login popup from the same library. I have setup workflows for both the login and signup buttons. On page load when I click on log in the popup displays the sign up form. This only happens on the first page load, so for example, if I then click on log in again the log in form displays correctly. With the sign up button everything works as expected. Could someone please take a look at my workflows posted below and see if I have done anything a but stupid?

Many thanks in advance for any help.

On the signup/login element there is probably a custom state that is being set to the ‘mode’ (either login or signup)…in your workflow to show it when button is clicked add a action to set the custom state of the signup element to the login mode.

Hi, thank you for the feedback. I don’t see any custom states in the element inspector. This is what is currently showing. Or have I misunderstood?

You’ll need to add your own custom state and conditions on the login and signup elements… then just set it to Login when the Login button is clicked…

Hello @paulalford2020 ,

Create a custom state on the page. Set the type of the custom state name navigation and data type as text.
On click of the sign-up button set the custom state to login and set the condition for the signup pop when the custom state value is signup then the signup pop is visible.
Do the same for the login popup instead of signup pass login value in the custom state and set the conditional when the custom state value is login the login pop is visible.

If any further assistance is required get in touch with me on:

That worked perfectly. Thank you very much! :slightly_smiling_face:

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