Page 1 of 1
Date Autofill
Posted: November 25th, 2015, 2:44 am
by MrTaco
Good day
How can i code system date as autofill so it wont be captured on the questionnaire?
Thabiso
Re: Date Autofill
Posted: November 25th, 2015, 6:42 am
by josh
In the preproc of the field use the sysdate() function to fill in the value of the field:
PROC INTERVIEW_DATE
preproc
// Fill in interview date automatically based on current date
INTERVIEW_DATE = sysdate("YYYYMMDD");
If you don't want the interviewer to be able to modify the date you can use the noinput command or you can make the field protected.
Re: Date Autofill
Posted: November 27th, 2015, 3:59 am
by MrTaco
Thanks Josh