Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Condition in end message

Re: Condition in end message 2 years 4 months ago #76882

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 171
  • Thank you received: 1
  • Karma: 3
holch wrote:
Wouldn't it be easier to put a page with a boilerplate question for each text? OK, then you would have another page before you finish, but you could work with conditions.
I agree, but the survey is live, and I have lots of users registered. So to be able to add another question, I have to take the survey offline, which I cannot.

Secondly, the information fits perfectly on the confirmation page, so if I can handle it with js, then it is great.
Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |
The administrator has disabled public write access.

Re: Condition in end message 2 years 4 months ago #76885

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2550
  • Thank you received: 285
  • Karma: 102
Ok, makes sense. I am not very savy in JS, so I can't help.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re: Condition in end message 2 years 4 months ago #76905

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6207
  • Thank you received: 788
  • Karma: 238
waitz wrote:
That's strange. On my local wamp server, none of them work.... {TOKEN:ATTRIBUTE_XX} or {ATTRIBUTE_XX}
Hello:
First :
- Just put {TOKEN:ATTRIBUTE_XX} {ATTRIBUTE_XX} to see if it's appear.
Second:
Is the survey is set to "not anonymous"
Did you activate "User can print there answer at end of the survey"

Did you see the print link ?

Denis
The administrator has disabled public write access.

Re: Condition in end message 2 years 4 months ago #76909

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 171
  • Thank you received: 1
  • Karma: 3
DenisChenu wrote:
Hello:
First :
- Just put {TOKEN:ATTRIBUTE_XX} {ATTRIBUTE_XX} to see if it's appear.
Second:
Is the survey is set to "not anonymous"
Did you activate "User can print there answer at end of the survey"
Did you see the print link ?
Denis
Yes to all, and it still doesn't work :(
Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |
Last Edit: 2 years 4 months ago by waitz.
The administrator has disabled public write access.

Re: Condition in end message 2 years 4 months ago #76912

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6207
  • Thank you received: 788
  • Karma: 238
waitz wrote:
DenisChenu wrote:
Hello:
First :
- Just put {TOKEN:ATTRIBUTE_XX} {ATTRIBUTE_XX} to see if it's appear.
Second:
Is the survey is set to "not anonymous"
Did you activate "User can print there answer at end of the survey"
Did you see the print link ?
Denis
Yes to all, and it still doesn't work :(
I test with
- Anonymized responses? This survey is NOT anonymous. (Cannot be changed)
- Participants may print answers? : YES
- {TOKEN:ATTRIBUTE_1} in End message
And all is OK.
Version 1.91+ Build 120302

Denis
The administrator has disabled public write access.

Re: Condition in end message 2 years 4 months ago #76914

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6207
  • Thank you received: 788
  • Karma: 238
Oups, for the script:
<script type='text/javascript'>
if ("{TOKEN:ATTRIBUTE_XX}"== "1" && "{TOKEN:ATTRIBUTE_YY}"== "1"){
document.write("message to show if true");
}else{
document.write("message to show if false");
}
</script>
I never read the script i put on forum :).
The administrator has disabled public write access.

[SOLVED] Re: Condition in end message 2 years 4 months ago #76939

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 171
  • Thank you received: 1
  • Karma: 3
Ahh, that was it, thanks :)
Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.269 seconds
Donation Image