# How to Call a JS function on continue button click?

**URL:** <https://community.auth0.com/t/how-to-call-a-js-function-on-continue-button-click/195145>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [December 3, 2025, 3:43am UTC](https://community.auth0.com/t/how-to-call-a-js-function-on-continue-button-click/195145 "2025-12-03T03:43:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![msharma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/msharma/32/71440_2.png) [@msharma](https://community.auth0.com/u/msharma)\
**Post date:** [December 3, 2025, 3:43am UTC](https://community.auth0.com/t/how-to-call-a-js-function-on-continue-button-click/195145/1 "2025-12-03T03:43:09Z")

</div>

Hi All,

I am working on SignUp form. I have bunch of checkboxes which users are supposed to check and then i need to save them in the database. For this, I have created a hidden variable which will contain the values of selected checkboxes and send them to api. I wrote this code inside a JS function. Now, Issue is that I am not able to Call the JS function on any event. I want to call the function on continue button click. Does anyone knows how to do this?

---

<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:** [December 4, 2025, 6:03pm UTC](https://community.auth0.com/t/how-to-call-a-js-function-on-continue-button-click/195145/3 "2025-12-04T18:03:05Z")

</div>

Hi @msharma

Welcome to the Auth0 Community!

If you are looking to add checkboxes for your signup scree, I would recommend [customizing  
the signup prompts using partials](https://auth0.com/docs/customize/login-pages/universal-login/customize-signup-and-login-prompts). By using partials, you will be able to capture and set the data using a [Post-User Registration Action](https://auth0.com/docs/customize/login-pages/universal-login/customize-signup-and-login-prompts#validate-and-save-captured-data) as seen in the example linked in the documentation.

Otherwise, if you are using Auth0 Forms to implement custom signup elements, I would recommend using a Flow to bind the necessary information to the user.

If I am not understanding your implementation correctly, please provide me some examples of how are you trying to implement this functionality.

I will be looking forward to your other questions on the matter!

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:** [December 18, 2025, 6:03pm UTC](https://community.auth0.com/t/how-to-call-a-js-function-on-continue-button-click/195145/4 "2025-12-18T18:03:05Z")

</div>

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