- Posts: 18
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Conditions/Relevance Equations based on Attributes having something in them
- TDynamics
- Topic Author
- Offline
- New Member
Less
More
9 years 6 days ago #119343
by TDynamics
Conditions/Relevance Equations based on Attributes having something in them was created by TDynamics
Hello All,
Today I am trying to figure out if it is possible to have a condition based on a token attribute having content.
I am populating the attributes for people with a child over 18. If they don't have a child over 18, then I don't want the question to show up.
Is there a way to have the relevance equation be something along the lines of !is_empty(TOKEN:ATTRIBUTE_1)?
Today I am trying to figure out if it is possible to have a condition based on a token attribute having content.
I am populating the attributes for people with a child over 18. If they don't have a child over 18, then I don't want the question to show up.
Is there a way to have the relevance equation be something along the lines of !is_empty(TOKEN:ATTRIBUTE_1)?
The topic has been locked.
- TDynamics
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
9 years 6 days ago #119344
by TDynamics
Replied by TDynamics on topic Conditions/Relevance Equations based on Attributes having something in them
Nevermind. My guess was correct.
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
9 years 5 days ago #119367
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Conditions/Relevance Equations based on Attributes having something in them
And if you "import" the token : this is best:
!is_empty(trim(TOKEN:ATTRIBUTE_1))
!is_empty(trim(TOKEN:ATTRIBUTE_1))
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- TDynamics
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
9 years 3 days ago #119429
by TDynamics
Replied by TDynamics on topic Conditions/Relevance Equations based on Attributes having something in them
Thank you for your help.
Not to be OCD, but why does it make a difference with the (trim(TOKEN:ATTRIBUTE_1)) vs not having the trim?
Not to be OCD, but why does it make a difference with the (trim(TOKEN:ATTRIBUTE_1)) vs not having the trim?
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
9 years 3 days ago #119438
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Conditions/Relevance Equations based on Attributes having something in them
Because, when some "user" use some spreadsheet tool, space are easily added to a "empty" column
Then when importing : there was a space. Triming remove this space.
Then when importing : there was a space. Triming remove this space.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.