Weweb + Xano auth add new fields to form

Hi Guys,

Is it possible to add more fields to the xano signup form? when i add the form i am only able to input name, email and password. and bind them to the xano auth.

What i want is to create a signup that includes company as well but i do not know how to set it up and how to add the extra field in the weweb workflow. further more it would also be great if i could somehow create a “hidden field” or value that can be passed along as role.

Please help.
Thank you.

Hi @SidewayHR ,

roles etc you should manage on the backend - especially if it’s as important as roles.

If you work on Weweb / Xano, you can create a signup form however you like - you just modify the backend endpoint (ie add additional fields) and then you can pass them on the frontend.

Signup form consists of form and selected inputs which you want the user to pass on. In Xano you have your inputs that need to match those and then you create any type of logic.

WeWeb Signup action in Xano is just a predefined request on particular url with predefined set of inputs. I personally don’t use it - I create my own singup flows because you always want to push more data on user registration. (ie gdpr / marketing consents or something).

But it works in the same way as normal Request - so you can use Request and then customize it to suit your needs.

Regards,
Tomek

Hi twieczorek,

Thanks for your answer. I’m still trying to understand what you mean here sorry for the lack of brain function on my end ;).

Am i correct when you say i should add role and company to my user table like this.

then add those field to mig my endpoint like this:

And then design my own form and put a signup auth on the form and then add a request afterward like this:

Is something wrong in the settings above? I get this message when i try to fill it out and it does not transfer the company to the database user

Thank you again :slight_smile:

Hi,

In your SignUp API endpoint in Xano add additional input:

Then in WeWeb in your SigUp Xano form this additional input will appear:

You can bind whatever you want in WeWeb and pass it to Xano.

The rest is on Xano side in AddRecord in #user action.

Thanks to both of you that did the trick. I had done it before but I did not update the form in weweb so when i did your changes and added the form again it was working :slight_smile: