Using Forms to create a custom registration form while passing in variable

Ready to post? :mag: First, try searching for your answer.
I have a use case which I think is suited for the new Forms feature, but not sure. I want to pass in an affiliate_code to the registration flow while also collecting first name and last name which is input by the user.

So:

  1. User clicks a URL: mysite.com/code
  2. I take code and pass it to Auth0 registration flow using “state”
  3. Auth0 asks for first name and last name using the new Forms feature
  4. Auth0 passes back to me first name, last name and code

Is this possible?

I tried setting up an Action whose code was given to me by the Forms feature after I designed the flow, but it never gets invoked so I can’t even get to try this.

Any guidance is appreciated.