I have a text entry question with flatpickr to pick a date, and jquery using embedded data (if it exists) to set the date text. (The idea is that if we already have a date on file, it fills that; otherwise, the user picks a date). This works, filling the text entry space with the date on file.
---- so JS on text entry questions
Qualtrics.SurveyEngine.addOnload(function(){
jQuery("#"+this.questionId+" .InputText").flatpickr( {
altInput: true,
altFormat: "F j, Y",
maxDate: new Date(),
dateFormat: "Y-m-d",
});
if ("${e://Field/doseDate1}" ) {
jQuery("#"+this.questionId+" .InputText").val("${e://Field/doseDate1}");
}});
----
On the next page, I have piped text set up to show the selected choice for the question (as a test). If I select a value from the calendar, the choice appears. If I don't pick one and just leave the date that was filled by the embedded data, the selected choice pipe text is blank. So-- dates populated by jquery don't save to Qualtrics but dates the user selected do. AND if the user selects a new date on a prepopulated text entry field, the new date saves.
If I remove the flatpickr code, it works- so the problem is the interaction with flatpickr.... but how to fix it?
Value not saving with flatpicker on jquery embedded data set text entry
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.
