# Handling going to next step from a HTML block in Auth0 Forms

**URL:** <https://community.auth0.com/t/handling-going-to-next-step-from-a-html-block-in-auth0-forms/190920>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [August 22, 2025, 12:56am UTC](https://community.auth0.com/t/handling-going-to-next-step-from-a-html-block-in-auth0-forms/190920 "2025-08-22T00:56:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkatasaimourya.and](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/venkatasaimourya.and/32/74596_2.png) [@venkatasaimourya.and](https://community.auth0.com/u/venkatasaimourya.and)\
**Post date:** [August 22, 2025, 12:56am UTC](https://community.auth0.com/t/handling-going-to-next-step-from-a-html-block-in-auth0-forms/190920/1 "2025-08-22T00:56:23Z")

</div>

I’m using Auth0 Forms and have created a form step using only an **HTML block** (no pre-built templates or scripts). I need to handle advancing to the **next step** in the form flow **from within the HTML block** , but I can’t find any documented method or function that allows this.

Is there an officially supported way to trigger moving to the next step from within a custom HTML block?

Any help or workaround would be appreciated!

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [August 29, 2025, 7:47pm UTC](https://community.auth0.com/t/handling-going-to-next-step-from-a-html-block-in-auth0-forms/190920/4 "2025-08-29T19:47:58Z")

</div>

Hi @venkatasaimourya.and

Welcome to the Auth0 Community!

Thank you for posting your question. Can you try to recreate the Next Button in the HTML:

```auto
<button id="my-custom-button" type="button" class="af-button af-nextButton">
  <span class="af-button-text">Continue</span>
</button>

```

And then attach a click listener that will make the form go forward:

```auto
<script>
  document.querySelector('#my-custom-button')
    .addEventListener('click', () => $form.goForward());
</script>

```

Let me know if this fixes your issue!

Thanks  
Dawid

---

<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:** [September 12, 2025, 7:49pm UTC](https://community.auth0.com/t/handling-going-to-next-step-from-a-html-block-in-auth0-forms/190920/6 "2025-09-12T19:49:04Z")

</div>

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