@TomG Thanks for responding. I saw your previous posts related to date calcs. I'm stuck on how to proceed. So far I've included this script into the html: <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.21.0/moment.min.js"></script>. I then created an ED field to pipe the month and year variables; assuming the day is 01: mammodate=${q://QID43/ChoiceTextEntryValue/1/1}/01/${q://QID43/ChoiceTextEntryValue/1/2} I also created an ED field for the number of years (mammoyrs) and designating eligibility (mammoelig) for anyone with dates less than 2 years. Using your answer to a previous question, I edited the script to this. Qualtrics.SurveyEngine.addOnPageSubmit(function() { var mammoyrs = moment().diff(moment(jQuery("#"+this.questionId+" .InputText").val()), 'years'); Qualtrics.SurveyEngine.setEmbeddedData('mammoyrs', mammoyrs); if(mammoyrs > 2) Qualtrics.SurveyEngine.setEmbeddedData('mammoelig', '1'); }); Any insight as to what I'm do
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.