I have the User Registration add-on with a create user stream working fine.
I want to display the username and password fields only if the user is not logged in, so they can enter their new desired username and password. If they are logged in, the form should just hide those fields and continue.
I have a hidden field with the default value set to {user:user_login}
. I set conditional logic to show/hide some generic HTML if the user_login value is empty (not logged in)… so I know that works.
If I apply the same logic to the username and password fields, it never works. I tried to “show if {user:user_login} is blank” or “hide if {user:user_login} is not blank” and either works. I was previously able to hide username and password fields based on a Yes / No radio circle choice, but we’ve removed that field…
We were previously asking if the visitor would like to create an account. Now, we want to require an account. I have a link to the login page if the user is not logged in… I guess another question would be… How can I put a small login form inline in the form so users can login without leaving the page?
How else can I approach this, without purchasing any 3rd party plugins?