# Best practice for branching web form during Pre User Registration?

**URL:** <https://community.auth0.com/t/best-practice-for-branching-web-form-during-pre-user-registration/88536>\
**Category:** Get Help\
**Tags:** pre-user-registratio\
**Created:** [August 10, 2022, 11:46pm UTC](https://community.auth0.com/t/best-practice-for-branching-web-form-during-pre-user-registration/88536 "2022-08-10T23:46:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mph-dzp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mph-dzp/32/33194_2.png) [@mph-dzp](https://community.auth0.com/u/mph-dzp)\
**Post date:** [August 10, 2022, 11:46pm UTC](https://community.auth0.com/t/best-practice-for-branching-web-form-during-pre-user-registration/88536/1 "2022-08-10T23:46:13Z")

</div>

We want to allow signups only via user-entered email address and password (similar to Universal Flow), and also prompt the user for demographic info during signup. The prompts for input will change (or “branch”) based on what’s been entered so far. We also want to allow signup in which an external site POSTs extra info, which we will check for in our branching logic.

I found four different approaches in the docs, and I haven’t been able to determine if any of them allow the prompting and branching logic we need:

- [Configuring the Lock](https://auth0.com/docs/libraries/lock/lock-configuration#additionalsignupfields-array-) Allows prompting for extra fields but no apparent support for branching
- [Pre User Registration Action](https://auth0.com/docs/customize/actions/flows-and-triggers/pre-user-registration-flow)
- [Redirect Rules](https://auth0.com/docs/customize/rules/redirect-users) But these [seem to fire only after a signup or login](https://auth0.com/docs/customize/rules/create-rules)
- [Authorization Extension](https://auth0.com/docs/customize/extensions/authorization-extension)

Can someone point me to docs that show how any of these support prompting and branching logic?

---

<div class="post-metadata">

**Author:** ![mph-dzp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mph-dzp/32/33194_2.png) [@mph-dzp](https://community.auth0.com/u/mph-dzp)\
**Post date:** [August 18, 2022, 12:23am UTC](https://community.auth0.com/t/best-practice-for-branching-web-form-during-pre-user-registration/88536/2 "2022-08-18T00:23:01Z")

</div>

> We also want to allow signup in which an external site POSTs extra info

For this use-case, we’d like to provide a query path, so our server can verify that the request is legitimate, and then redirect to our landing page and include the info provided in the original POST. But it’s not clear how to pass the info securely. [Redirect Users from Within Rules](https://auth0.com/docs/customize/rules/redirect-users) mentions a `state` query parameter and `context.request.body.token` but neither of these seems available before the user completes signup.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 3, 2024, 2:54am UTC](https://community.auth0.com/t/best-practice-for-branching-web-form-during-pre-user-registration/88536/3 "2024-12-03T02:54:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
