Welcome, Guest
Username: Password: Remember me

TOPIC: Show questions based on date of registration

Show questions based on date of registration 2 years 9 months ago #66594

  • helcom
  • helcom's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
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!
The administrator has disabled public write access.

Re: Show questions based on date of registration 2 years 9 months ago #66630

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4050
  • Thank you received: 740
  • Karma: 341
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: helcom

Re: Show questions based on date of registration 2 years 9 months ago #66640

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5300
  • Thank you received: 291
  • Karma: 247
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Show questions based on date of registration 2 years 9 months ago #66744

  • helcom
  • helcom's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi Tony and Mazi,

Thanks for your prompt replies.

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

Thanks
Grant
The administrator has disabled public write access.

Re: Show questions based on date of registration 2 years 9 months ago #66776

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5300
  • Thank you received: 291
  • Karma: 247
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.113 seconds
Donation Image