Check out the LimeSurvey source code on GitHub!

Hide undefined token attributes in survey template

More
4 years 2 months ago #88068 by limalemon
How do I hide undefined {TOKEN:ATTRIBUTE_1} in my survey template (survey.pstpl)?

I mean, I want to use them and it works great when inside the survey, but when I'm at the "input token" (first page), or any page that still hasn't got the token inputed, the token attributes are undefined and it displays them with the red text and border (I read about the expressiona manager, but I don't know how to use it in this case).

Help please...

Please Log in to join the conversation.

More
4 years 2 months ago #88884 by limalemon
Anyone?

I can't believe no one had this request before.

Please Log in to join the conversation.

More
4 years 2 months ago #88885 by Mazi
Why do you add the placeholder at the template and not at your survey?


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
4 years 1 month ago #88921 by limalemon
Can you give me an example please?

I thought I was doing it the right way by placing it in the survey.pstpl. Do I need to place it in a different file?

Please Log in to join the conversation.

More
4 years 1 month ago #88930 by jelo
The question is what it the purpose of your attribute. Why did you add the attribute to the template? Do you want to display the content of the attribute during the survey? On every page?

Please Log in to join the conversation.

More
4 years 1 month ago #88936 by limalemon
Exactly, I would like to have those attributes visible for every survey step.

Please Log in to join the conversation.

More
4 years 1 month ago #88937 by Mazi
In this case you can also use the survey description or group description and put the placeholders in there.
Or simply add a question of type "text display" containing the placeholder on top of every page.


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'"
The following user(s) said Thank You: limalemon

Please Log in to join the conversation.

More
4 years 1 month ago #88977 by DenisChenu
With survey description, you have it in token fill page.

Alertnative : put in in startgroup.pstpl.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: limalemon

Please Log in to join the conversation.

More
4 years 1 month ago #89006 by limalemon
thank you, I didn't know those two methods.

Please Log in to join the conversation.

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