How to hide atributes that are not filled.

More
4 years 6 months ago #90661 by Serafim
Serafim created the topic: How to hide atributes that are not filled.
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...

Please Log in to join the conversation.

More
4 years 6 months ago #90665 by tpartner
tpartner replied the topic: How to hide atributes that are not filled.
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.

Please Log in to join the conversation.

More
4 years 6 months ago #90675 by Serafim
Serafim replied the topic: How to hide atributes that are not filled.
Thanks, I'm gonna try it.

Please Log in to join the conversation.

More
4 years 6 months ago #90678 by Mazi
Mazi replied the topic: How to hide atributes that are not filled.
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)survey-consulting.com'"

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now