# Handling Submission in Auth0 Forms with Custom HTML Block + Accessing context, fields, etc. in Script

**URL:** <https://community.auth0.com/t/handling-submission-in-auth0-forms-with-custom-html-block-accessing-context-fields-etc-in-script/188673>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [July 2, 2025, 11:24am UTC](https://community.auth0.com/t/handling-submission-in-auth0-forms-with-custom-html-block-accessing-context-fields-etc-in-script/188673 "2025-07-02T11:24:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![azamp3139](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/azamp3139/32/58800_2.png) [@azamp3139](https://community.auth0.com/u/azamp3139)\
**Post date:** [July 2, 2025, 11:24am UTC](https://community.auth0.com/t/handling-submission-in-auth0-forms-with-custom-html-block-accessing-context-fields-etc-in-script/188673/1 "2025-07-02T11:24:52Z")

</div>

I’m using **Auth0 Forms** triggered via a **Post-Login Action** , and I’ve built the form entirely using a **custom HTML block** (not field blocks). I’ve added standard HTML inputs, but I’m unsure how to handle the **form submission** so it continues with the next flow properly.

Also, how can I access Auth0 variables like:  
`{{context.*}}`, `{{fields.*}}`, `{{vars.*}}`, `{{actions.*}}`, and `{{functions.*}}`  
inside a custom `<script>` block when using an HTML block?

Has anyone found a **workaround or best practice** for this setup

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [July 14, 2025, 7:15pm UTC](https://community.auth0.com/t/handling-submission-in-auth0-forms-with-custom-html-block-accessing-context-fields-etc-in-script/188673/4 "2025-07-14T19:15:37Z")

</div>

Hi @azamp3139

You should be able to access the variables by simply using:

```auto
<script>
let name = {{fields.name_field}}
</script>

```

Otherwise, I would recommend to add a button which handles the continuation of the flow either within the HTML block or outside it. Any data should be persisted during the execution.

Let me know if you have any other questions!

Kind Regards,  
Nik

---

<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:** [July 28, 2025, 7:16pm UTC](https://community.auth0.com/t/handling-submission-in-auth0-forms-with-custom-html-block-accessing-context-fields-etc-in-script/188673/5 "2025-07-28T19:16:38Z")

</div>

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