The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

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

TOPIC: How to hide atributes that are not filled.

How to hide atributes that are not filled. 4 months 2 weeks ago #90661

  • Serafim
  • Serafim's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 80
  • Karma: 1
Hello,

is it possible to hide atributes in a token that are not filled? So when I use that atribute in a question, in the tokens that that atribute is filled it will show, but in tokens that atribute is not filled it does not appear.

Sorry for my english...
The administrator has disabled public write access.

Re: How to hide atributes that are not filled. 4 months 2 weeks ago #90665

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2867
  • Thank you received: 426
  • Karma: 246
With Expression Manager you can use an IF statement - docs.limesurvey.org/Expression+Manager&s...mplemented_Functions
{if(TOKEN:ATTRIBUTE_5, TOKEN:ATTRIBUTE_5, '')}
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: How to hide atributes that are not filled. 4 months 2 weeks ago #90675

  • Serafim
  • Serafim's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 80
  • Karma: 1
Thanks, I'm gonna try it.
The administrator has disabled public write access.

Re: How to hide atributes that are not filled. 4 months 2 weeks ago #90678

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5116
  • Thank you received: 261
  • Karma: 240
Tony, did you test that syntax? Doesn't it just test if the token attribute exists instead of checking whether it contains any value?

Anyway, if the above example doesn't work, try this:
{if(!is_empty(TOKEN:ATTRIBUTE_5), TOKEN:ATTRIBUTE_5, '')}

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.
  • Page:
  • 1
Moderators: DenisChenu, ITEd
Time to create page: 0.235 seconds
Donation Image