Pre-fill form fields on registration


We would like to register new users by presenting them with a registration page where certain fields are already pre-filled.
Can this be accomplished using a custom theme where for example JS is used to fetch some query params that we pass to the registration page like this :

Where the registrationEmail,registrationFirstname and registrationLastname query params could be placed inside the form input fields ?

Or is there another / better way to achieve this ?

1 Like

I had the same problem and found the way to do it in a formAction.
Example :

For your case I think you can recover your query params with : context.getHttpRequest().getUri().getQueryParameters()

And just call your fromAction just before “Registration User Creation” like this :