Hello, How can i let a user pick a username that isn’t already in use ?
Depending on how your system is setup you would just be able to give an input field and create a field in the user table “username”.
When you are submitting to the table via a button you can create a conditional statement in the workflow that only allows the user to use that username as long as no one else has an exact match.
If you would like me to break down further let me know.
Thanks for your time, Could you please break it down further from the point where i set up the workflow when a button is clicked?
So it really depends on how you have your page setup but if you have a form for user creation you can add a section for the user name. If you’d like me to cater it more to your page send me a screenshot of your page workflow and database
Breakdown
Page: Button for user creation/username creation.
Database: User Table add username field type text.
Workflow (New User)
Sign user up give the email and password and then at the bottom you can select a button to add more field to change. Include the username there and link it to the username input.
You will need to make a conditional workflow. Select the sign the user up workflow to only when, do search for user, search for username = username.
(In order to see all usernames during search change your privacy settings to have the data public.)
Go back to the original workflow and you will want it to look like this: Only when Do search for users:count < 1
This will prevent the workflow from running. In order to show the user that there is a match you will want to add a hidden text or use and alert to show that the username that selected is not available.
thanks i will try it this out and let you know
What you need to do here is have a hidden text element under the username input field.
Once a user types in a username
- Have a condition on the hidden text. ‘When search for user’s username =username value first item is not empty’ show the hidden field and mark the border of the input as red. Also for best practice grey out your signup button and keep a condition ‘isn’t clickable’
The user will type in a new username and if it doesn’t exist they can signup easily
Hope this helps
This topic was automatically closed after 70 days. New replies are no longer allowed.