How to Call a JS function on continue button click?

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?

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
. By using partials, you will be able to capture and set the data using a Post-User Registration Action 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