# Adding account fields to a registration page

**URL:** <https://forums.knack.com/t/adding-account-fields-to-a-registration-page/14075>\
**Category:** Get Answers\
**Created:** [April 10, 2023, 10:15pm UTC](https://forums.knack.com/t/adding-account-fields-to-a-registration-page/14075 "2023-04-10T22:15:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewUK](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@AndrewUK](https://forums.knack.com/u/AndrewUK)\
**Post date:** [April 10, 2023, 10:15pm UTC](https://forums.knack.com/t/adding-account-fields-to-a-registration-page/14075/1 "2023-04-10T22:15:00Z")

</div>

Evening,

I find the Accounts and Roles a pain. My app has a few roles, and some users can have multiple roles - so if you want common information on that user - e.g. a mobile phone number, it needs to be added as a field in the Account rather than the role - this makes sense.

The issue i have is when a user registers as a role, you cannot populate an account field on the form. Is seems odd that you cannot add fields from the ‘to be’ created account that the role will be sub-assigned to at registration. I guess i could create a role temp number filed which then gets copied over to the account filed upon submission and then a daily task run to delete the original temp mobile entry in role, but this seems like a big hoop to go through for some simple user data gathering at registration, which makes me think I’m missing the obvious setting etc.

any insight would be handy thanks

Andrew

---

<div class="post-metadata">

**Author:** ![KnackPros](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/knackpros/32/807_2.png) [@KnackPros](https://forums.knack.com/u/KnackPros)\
**Post date:** [April 11, 2023, 1:13am UTC](https://forums.knack.com/t/adding-account-fields-to-a-registration-page/14075/2 "2023-04-11T01:13:27Z")

</div>

Hi Andrew,

If I’m understanding you correctly, you can solve your issue by creating a form that adds an Account, and use that as your registration form.

Then you can create different forms for each role and set the role with a Record Rule.

---

<div class="post-metadata">

**Author:** ![AndrewUK](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@AndrewUK](https://forums.knack.com/u/AndrewUK)\
**Post date:** [April 11, 2023, 9:26am UTC](https://forums.knack.com/t/adding-account-fields-to-a-registration-page/14075/3 "2023-04-11T09:26:19Z")

</div>

Hi,

thanks for reply, but i do need to create the account with a role form, as initially a self registered user starts as a certain role, and can then be allocated other roles etc. although i’m now thinking i could create an account and then could be able to add role upon submit as action etc. - that would be easier than copying numbers with tasks etc.

thanks for sugestion

---

<div class="post-metadata">

**Author:** ![KnackPros](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/knackpros/32/807_2.png) [@KnackPros](https://forums.knack.com/u/KnackPros)\
**Post date:** [April 11, 2023, 3:26pm UTC](https://forums.knack.com/t/adding-account-fields-to-a-registration-page/14075/4 "2023-04-11T15:26:35Z")

</div>

Yes, that’s correct. The form would add an Account and set the role with a Record Rule.
