Forum Academy Marketplace Showcase Pricing Features

Can i use Username as text field instead of email

Yes Same email may have different username but i guess this is not be possible.
Other Logic to have a field which drives the permission. I did the same have a field attached to user which says “allowed company” but now to this i cant add multiple inputs. So this user will only able to see data attach to one company only.
And we cant select multiple company in this selection as user field wont accept.
Seems complex to give access to multiple points in single app.

Right, at this stage, we use emails as a unique identifier. We could look into changing this with phone numbers or pseudos, but it’s a significant project, not a quick fix. If that’s an issue we can talk about it (reach out), but in the meantime, @NigelG’s solution is good as well.

2 Likes

Emmanuel, do you mean that there could be 2 users with the same UserName but with different e-mail (certainly taking into account that we have setup username field on the signup form)? Or there is way to make UserName unique as well?

Well there is, you can define whatever condition on the workflow that signs the user up (when search for users whose username is X’s count is 0). That way you make sure users with such a username don’t exist yet.

2 Likes

Emmanuel,

Do I understand you correctly - I need to create 2 events in the sign-up workflow:
1st: “When User Signs Up” and "When Input UserName is equal to Do a search for UserName (which is already in database) - will lead to ERROR (alert)
2nd: “When User Signs Up” and "When Input UserName is NOT equal to Do a search for UserName (which is already in database) - will lead to proper sign up

I feel like I overcomplicate it, don’t I?

I would have the condition do a search based on the username in the input and look and the count. Did you try this? That’s the most straightforward way.

emmanuel, sorry, but I don’t quite get it

  • by condition you mean “conditional tab” on the sign up button or what?
  • what do you mean by “look and the count”?

It’d be great if could describe the process step-by-step.

Can you try in the forum_app and then i’ll check it there?

Hi, Emmanuel

Back to this problem.
I added Username field to User + added Input Username to sign-up pop-up.
Really don’t know what to do next. Please assist.

Check out the workflow on your page. I added a condition on the workflow to only run if a username hasn’t been taken.

4 Likes

Scott, thanks so much.

It works)
The thing is that I don’t fully understand function “count”. Will try to have a look in reference - seems like this function could solve a number of problems I currently encounter.

:count is one of the many ways to do things once you have done a “search”.

So you search for the things you want, and then you can modify the results.

:count tells you how many you found (so in this case, if you count is 0 then the username doesn’t already exist).

You can :sort

And :filter

Or just get the :unique items.

Another way of doing the same thing would be to Search for all Users as a “Search for Users doesn’t contain Username”.

4 Likes

Thanks, Nigel

Did the Sign UP form change since this discussion in December ? I would like to add a username but as I double click the default Signup form or the page, I get a different settings window to that of @NigelG above ? Can someone tell me if it changed or how I can find this window where I can add additional data.

Thanks in advance.

Hey there, Nigel’s image above is from the Workflow tab, while you are looking at the popup element in the design view. In the Workflow tab, there is an action called “Sign the User Up.” That’ll get you the dialog box Nigel shows above.

Thankyou @potentialthings.

I think I found it as below. However, I have the “Change Another Field” but not “Save some additional data” . I have tried to add a similar field like email called username to the form design; added a new data type to user called username to see if they will open up this option but they didnt.

Apologise if I am missing something small here.

Edit: Disregard

Hi, @NigelG
While I was searching for my question. I landed on this page…
I think you have an answer for my question. So I encouraged myself to ask you.
Is it possible to ‘Sign up an user’ with only ID and PW (instead of using Email)?
I want my users to use only ID and PW not Email at all.
If it is doable, how can I make it happen?

Thank you for reading!

1 Like

Hi there,

Yes, entirely possible. Create yourself a dummy email address using [email protected] (doesn’t have to be, but at least you know it won’t go anywhere else if someone uses it).

Then behind the scenes convert id > email each time.

The issue you now have is resetting the password if they forget, but you can’t email it to them !

So you could text them the password reset link or use it from an “Admin” panel to reset if yourself and then ask them to change.

If you want to create the IDs youself then look at the “Create user for someone else” function.

N.

2 Likes

Thank you, @NigelG !
I could feel your kindness all over your thoughtful article.

I just wanted to share what I did for others.
(Even it may cause problem later, it works now. Definitely I need to test more.)

I set input for ID as ‘type of text’ and used ‘append’ like below.

When ID to be shown is like below.

Thank you again~ :cowboy_hat_face:

1 Like