Welcome, Guest
Username: Password: Remember me

TOPIC: Hide undefined token attributes in survey template

Hide undefined token attributes in survey template 1 year 11 months ago #88068

  • limalemon
  • limalemon's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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...
The administrator has disabled public write access.

Re: Hide undefined token attributes in survey template 1 year 10 months ago #88884

  • limalemon
  • limalemon's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
Anyone?

I can't believe no one had this request before.
The administrator has disabled public write access.

Re: Hide undefined token attributes in survey template 1 year 10 months ago #88885

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Hide undefined token attributes in survey template 1 year 10 months ago #88921

  • limalemon
  • limalemon's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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?
The administrator has disabled public write access.

Aw: Re: Hide undefined token attributes in survey template 1 year 10 months ago #88930

  • jelo
  • jelo's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 470
  • Thank you received: 52
  • Karma: 16
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?
The administrator has disabled public write access.

Re: Aw: Re: Hide undefined token attributes in survey template 1 year 10 months ago #88936

  • limalemon
  • limalemon's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
Exactly, I would like to have those attributes visible for every survey step.
The administrator has disabled public write access.

Re: Aw: Re: Hide undefined token attributes in survey template 1 year 10 months ago #88937

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.
The following user(s) said Thank You: limalemon

Re: Aw: Re: Hide undefined token attributes in survey template 1 year 10 months ago #88977

  • DenisChenu
  • DenisChenu's Avatar
  • NOW ONLINE
  • Moderator Lime
  • Posts: 6435
  • Thank you received: 840
  • Karma: 249
With survey description, you have it in token fill page.

Alertnative : put in in startgroup.pstpl.

Denis
The administrator has disabled public write access.
The following user(s) said Thank You: limalemon

Re: Aw: Re: Hide undefined token attributes in survey template 1 year 10 months ago #89006

  • limalemon
  • limalemon's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
thank you, I didn't know those two methods.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.109 seconds
Donation Image