Can Start node hidden field values be retrieved in onContinuePostLogin?
I’m building a custom consent screen using Auth0 Forms and a React app rendered via api.prompt.render() in a PostLogin Action.
I need to pass two values back to onContinuePostLogin after the user interacts with my React UI:
dma_accepted(true/false)dma_consent_type(single/continuous)
What I’ve tried:
-
Start node hidden fields — defined
dma_acceptedanddma_consent_typeas hidden fields in the Start node, then tried setting them viadocument.querySelector('[name="dma_accepted"]')before submit. The query always returnsnull— no DOM element is rendered for Start node fields. -
context.form.setValue()+goForward()—setValuesilently fails andgoForward()hangs indefinitely on a pending WebSocket (wss://relay-dev.account.booking.com:3000/ws). -
POST to
/continue— returns 400 Bad Request when posting custom fields directly. -
sessionStorage— client-side only, never reaches the Action.
What works (partially):
Adding Text Input controls directly in the Step, then using document.querySelector('[name="dma_accepted"]').value = 'true' before clicking the Continue button — this successfully passes values to event.prompt.fields in onContinuePostLogin. This mirrors the solution described in this thread.
My question:
Is there any supported way to pass values set programmatically (from a custom React app) back to onContinuePostLogin using Start node hidden fields — without needing to add visible/hidden Text Input controls in the Step?
Or is adding Step-level Text Input fields the only supported mechanism for writing data back to event.prompt.fields?
Any guidance appreciated. Thanks!