Hide undefined token attributes in survey template

More
4 years 6 months ago #88068 by limalemon
limalemon created the topic: Hide undefined token attributes in survey template
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 6 months ago #88884 by limalemon
limalemon replied the topic: Hide undefined token attributes in survey template
Anyone?

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

Please Log in to join the conversation.

More
4 years 6 months ago #88885 by Mazi
Mazi replied the topic: Hide undefined token attributes in survey template
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 6 months ago #88921 by limalemon
limalemon replied the topic: Hide undefined token attributes in survey template
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 6 months ago #88930 by jelo
jelo replied the topic: Aw: Re: Hide undefined token attributes in survey template
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 6 months ago #88936 by limalemon
limalemon replied the topic: Aw: Re: Hide undefined token attributes in survey template
Exactly, I would like to have those attributes visible for every survey step.

Please Log in to join the conversation.

More
4 years 6 months ago #88937 by Mazi
Mazi replied the topic: Aw: Re: Hide undefined token attributes in survey template
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 6 months ago #88977 by DenisChenu
DenisChenu replied the topic: Aw: Re: Hide undefined token attributes in survey template
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).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: limalemon

Please Log in to join the conversation.

More
4 years 6 months ago #89006 by limalemon
limalemon replied the topic: Aw: Re: Hide undefined token attributes in survey template
thank you, I didn't know those two methods.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now