Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: How to hide atributes that are not filled.

How to hide atributes that are not filled. 1 Jahr 8 Monate her #90661

  • Serafim
  • Serafims Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 114
  • Dank erhalten: 2
  • Karma: 2
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...
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How to hide atributes that are not filled. 1 Jahr 8 Monate her #90665

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4193
  • Dank erhalten: 788
  • Karma: 359
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 Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How to hide atributes that are not filled. 1 Jahr 8 Monate her #90675

  • Serafim
  • Serafims Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 114
  • Dank erhalten: 2
  • Karma: 2
Thanks, I'm gonna try it.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How to hide atributes that are not filled. 1 Jahr 8 Monate her #90678

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5325
  • Dank erhalten: 296
  • Karma: 249
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'"
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.168 Sekunden
Donation Image