Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

enable submit if text matches

Rahul
Rahul GurgaonCommunity Member Qubie ✭
edited August 2020 in Custom Code

On the last page before submit I would like user to enter the password before submitting. I added a single line text box to capture the password.

Is there a way I can match this value with the password I provided to user and enable submit submit of password matches?


I tried the following code but its not working:

document.getElementById('QR~QID11').addEventListener('blur', function()

{

if (document.getElementById('QR~QID11').value == "test")

{   

this.enableNextButton();

}

else

{

this.disableNextButton();  

}},false);

Answers