Hi in my survey i have a question where responded have two text entries to fill.
1) Hours ________ (content validation numeric)
2) Minutes __________(content validation numeric)
I want to display and alert when a respondent enters something greater than 16 in hours filed. I have tried the following code on Ready and it does not seems to be working.
var q1 = jQuery("#"+this.questionId+"input[type=text]").eq(0).val();
if(q1 > 16) {
alert("Please check if your work time is correct");
}
How can i do this effectively i just want a warning where respondent can go proceed even if they get warning.
How to create a alert message on multiple text entry (form) inputs?
Best answer by Niranjan
For any one looking for it I found the answer myself after going through a lot of hassle.
var msg = 'Your message'
var that = this.questionId;
jQuery("#" +that+" .InputText").on('blur',function(){
var q1 = jQuery("#"+that+" .InputText:eq(0)").val();
if(q1 > 16) {
alert(msg);
}
});
The above code is just to check in the first field.
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
