Registration Succesful Message

Hello

On my custom sign up form I want the page to automatically show a message when the user made the registration successfully, and if its already registered, to show an error saying its already registered

is there a way for this?

That will depend on how you are approving your site members.

Who can be a member? Choose who can be a member of your site:

  • Everyone: When a new member signs up, they are approved automatically. You do not need to do anything.

  • People I approve: When a new member signs up, you receive a notification, both by email and in your site’s dashboard, asking if you want to approve or reject them. Only those who you approve become site members.

If they are being manually approved, then the user can receive a simple Wix Automation when they signup to become a site member. Then when the user is approved as a site member they can then also get another simple Wix Automation saying that they have now become a site member of the website and they now have full access etc.

If your users are being approved automatically, then as soon as they register on the website to become a site member they are approved straight after they submit their request.

So, for this option you would need to do something when they click on your register button and you could have something simple like a collapsed or hidden text box with the text of ‘Registration Successful’ be set to expand or show after the registration is done.

To check if they are already a registered site member, then you would need to rework your code and have your code query your dataset and check that there is not already an existing site member with that same email for example.

If there is a existing site member with that email already registered then you can again have a collapsed or hidden text box with the text of ‘This email address has already been used’ be set to expand or show after the duplication is found in your query.

Nayeli (Code Queen) has a great code example that you can look at about not having duplicate profiles in your dataset.
https://codequeen.wixsite.com/membership-dashboard
Creating a client dashboard in Wix using Wix Code - Youtube video about tutorial