Injecting custom script in Auth0 Form for custom consent flow using custom-form prompt

Hi Auth0 Community,

We’re building a custom consent flow using Auth0 Universal Login (ACUL) and have run into a few questions we’d love some guidance on.

Our setup:

  • We’re using auth0_prompt_screen_renderer with head_tags to inject a custom JS bundle for prompts like login and signup

  • For our custom consent screen, we were using our ownxxx-consent as the prompt/screen type, but this is not a valid Auth0 prompt type

  • We’ve been advised to use the Auth0 Forms approach with the custom-form prompt instead

  • The Auth0 dashboard does not expose custom-form as an option, so this would need to be configured entirely via Terraform/API

Questions:

  1. What is the correct way to inject a custom JS bundle inside an Auth0 Form for a custom-form prompt?

  2. Since Auth0 Forms have no context, what is the recommended way to export variables like user.email, client.name, client.logo_uri, and tenant.friendly_name through the page template so they’re accessible to the custom script?

  3. How do you distinguish between multiple custom-form flows — is passing a param via the authorization URL the recommended approach?

  4. What is the recommended approach for handling translations inside Auth0 Forms given that screen.texts context is not available?

  5. Is custom-form the intended prompt type for custom consent , or is customized-consent more appropriate for this use case?

Any guidance or examples would be greatly appreciated. Thanks!