Welcome, Guest
Username: Password: Remember me

TOPIC: end survey if the same answer for a short text questions is given

end survey if the same answer for a short text questions is given 2 years 1 month ago #83077

  • IoSmith
  • IoSmith's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 28
  • Karma: 0
Hello.
I have an anonymous survey with a short text question. I want to end the survey if the same answer for the short text question has already been given from a previous user.
Is it possible?
The administrator has disabled public write access.

Re: end survey if the same answer for a short text questions is given 2 years 1 month ago #83119

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4127
  • Thank you received: 761
  • Karma: 347
A solution may be to use JavaScript to select a radio option in a hidden question if the short-text equals your value. You can then apply a quota of 1 to the hidden radio question.
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.

Re: end survey if the same answer for a short text questions is given 1 year 7 months ago #91552

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 203
  • Thank you received: 5
  • Karma: 5
I think the requirement "from a previous user" would preclude the use of javascript.
Make no mistake, I'm a noooooooo...oooooob. And no coder. But this question relates to a problem I have as well.

I'm doing a 360 survey. So I have tokens and attributes set up such that each token (rater) relates to a specified Ratee (For example, five survey takers or raters each have a token attribute like "Direct Report, "Peer", etc. They each also have a token attribute called Ratee email address. For these five raters, that token attribute displays the SAME email address. In this way, I know who each rater is rating. And I can use Expression Manager to assure that the rater knows who he or she is rating).

So my issue is that I need to go thru all the tokens, identify those tokens associated with the Ratee's email, and print that count to the Self assessment. So, when the Ratee goes in to take his/her own self assessment, that person will see, "hey - five other people are going to rate you as well."

I'll have to link to the database, and check the records, return the appropriate count, and print the count in a text display question.

I think this is a similar process required to achieve the objective of checking for a previously left response. If there was a solution discussed for this problem, I'd love to hear it.

Thank you.
David
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.126 seconds
Donation Image