<p>Is there any way to add an address for a prospective user during front-end registration on Craft 5?</p>
<p>I'm trying to set up front-end registration on a Craft 5 site. The ideal process is that a prospective user will fill in a front-end registration form as described in the official knowledge base (<a href="https://craftcms.com/knowledge-base/front-end-user-accounts" rel="nofollow noreferrer">https://craftcms.com/knowledge-base/front-end-user-accounts</a>) which will create a deactivated user. That prospective user's details will then be manually checked by an admin prior to being sent an activation email.</p>
<p>The problem lies in collecting an address from the prospective user. As far as I can tell, users can only create/edit their own addresses <em>after</em> they are activated and logged in. In my case a 2-step process where the address is added later is not acceptable as the address needs to be manually checked before the user is activated.</p>
<p>Does anyone have a solution for this?</p>
<p><em>Note:</em> I'm aware that a similar question was asked back in 2020 (<a href="https://craftcms.stackexchange.com/questions/36033/add-billing-address-to-user-on-registration">Add billing address to user on registration</a>) but there was no answer regards achieving this without a 2 step flow.</p>

CC BY-SA 4.0
2024-10-07T08:20:36.013Z
Not sure if it helps at all, but here's how I did it in Craft 4 (sorry still not had to upgrade that one to 5 yet, so not sure if there's a better or more native way now) https://craftcms.stackexchange.com/a/41876/271
James Smith
CC BY-SA 4.0
2024-10-07T08:45:55.763Z
Looks very promising, thanks! I'll try it out on Craft 5 and report back.
Meester_Paul
<registration><frontend-form><craft5><addresses>
Adding an address for user during front-end registration
# Adding an address for user during front-end registration

(Asked by: username_0 on 2024-10-07)

Is there any way to add an address for a prospective user during front-end registration on Craft 5?

I'm trying to set up front-end registration on a Craft 5 site. The ideal process is that a prospective user will fill in a front-end registration form as described in the official knowledge base (<https://craftcms.com/knowledge-base/front-end-user-accounts>) which will create a deactivated user. That prospective user's details will then be manually checked by an admin prior to being sent an activation email.

The problem lies in collecting an address from the prospective user. As far as I can tell, users can only create/edit their own addresses *after* they are activated and logged in. In my case a 2-step process where the address is added later is not acceptable as the address needs to be manually checked before the user is activated.

Does anyone have a solution for this?

*Note:* I'm aware that a similar question was asked back in 2020 ([Add billing address to user on registration](https://craftcms.stackexchange.com/questions/36033/add-billing-address-to-user-on-registration)) but there was no answer regards achieving this without a 2 step flow.

**Tags:** registration, frontend-form, craft5, addresses
> **Comments:**
> **username_1**: Not sure if it helps at all, but here's how I did it in Craft 4 (sorry still not had to upgrade that one to 5 yet, so not sure if there's a better or more native way now) https://craftcms.stackexchange.com/a/41876/271  
> **username_0**: Looks very promising, thanks! I'll try it out on Craft 5 and report back.  

---

## 0 answers

