Date Autofill

Other discussions about CSPro
Forum rules
New release: CSPro 8.0
Post Reply
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Date Autofill

Post by MrTaco »

Good day

How can i code system date as autofill so it wont be captured on the questionnaire?

Thabiso
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Date Autofill

Post 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.
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Re: Date Autofill

Post by MrTaco »

Thanks Josh
Post Reply