Check out the LimeSurvey source code on GitHub!

Show questions based on date of registration

More
5 years 4 months ago #66594 by helcom
Hi everyone,

I have a token based survey with public registration.

I would like to have parts (question groups) of my survey visible based on the date of registration. Is it possible using conditions to show/hide questions based on say Token:Invitation sent?

Thanks in advance - and go the All Blacks!

Please Log in to join the conversation.

More
5 years 4 months ago #66630 by tpartner
I don't know about using the registration date but you should be able to use JavaScript to find the current date and then populate a hidden question accordingly. The hidden question could then be used for the conditions on following questions.

JavaScript can only find the current date set on the respondents computer so, if you are concerned about the accuracy of that, you could use an AJAX call to a remote PHP script that would return your server date.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: helcom

Please Log in to join the conversation.

More
5 years 4 months ago #66640 by Mazi
Keep in mind that your survey has to be NON anonymous when trying to sue token data at conditions.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 4 months ago #66744 by helcom
Hi Tony and Mazi,

Thanks for your prompt replies.

I figured Javascript may be the only option but just wanted some confirmation.

Thanks
Grant

Please Log in to join the conversation.

More
5 years 4 months ago #66776 by Mazi
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form