Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Can i use insertans in welcome message

  • achstil
  • achstil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago - 5 years 8 months ago #171820 by achstil
Hi

I'd like to use something like: "This is a questionarire about your {intval(INSERTANS:141414X1X1.shown)} house" in my welcome message.

The answer is posted in the URL get request, like this: " limesurvey.example.com/index.php?r=surve...lang=da&141414X1X1=2 "

If this is not possible, I plan to discard the welcome message survey element, add a en empty question group and but the welcome message text there instead. The functionality will be the same. I just prefer not to do this, as I have already made a bit work, presuming the current survey structure.

So - thats why I am asking :-)
Last edit: 5 years 8 months ago by DenisChenu.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #171827 by Joffm
Replied by Joffm on topic Can i use insertans in welcome message
Doesn't seem to be possible.
In my opinion it's the best to create a group at the beginning where you have your question X1 and afterwards explain in a text display question which house it is.

This should not affect the rest of your survey.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: teracomp
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago - 5 years 8 months ago #171840 by DenisChenu
Replied by DenisChenu on topic Can i use insertans in welcome message
INSERTANS:141414X1X1.shown CAN NEVER work …

Else : try with EM, but don't think it work. Easy way : create a Group with a single text display question and put you EM code (real and clean) inside.

manual.limesurvey.org/Expression_Manager

PS : usage of example.com PLEASE

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 years 8 months ago by DenisChenu.
The following user(s) said Thank You: teracomp
The topic has been locked.
  • achstil
  • achstil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #171847 by achstil
Replied by achstil on topic Can i use insertans in welcome message
Thanks both

For the record: INSERTANS works fine in the survey. The EM manager doesn't seem to like URL Get parameters. And since we pass this in the URL - we have to use the old style insertans :-) Maybe because of xss enabled? manual.limesurvey.org/Expression_Manager#XSS_security

example.com - OK :-)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago - 5 years 8 months ago #171863 by DenisChenu
Replied by DenisChenu on topic Can i use insertans in welcome message
INSERTANS:141414X1X1 == QCODE.show … you can't use QCODE.NAOK or QCODE.question etc …

And i really think
Code:
{intval(INSERTANS:141414X1X1.shown)}
broke, but not
Code:
{intval(INSERTANS:141414X1X1)}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 years 8 months ago by DenisChenu.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose