- Posts: 10
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
kohuke wrote: That much I know that I can make the comment show or be hidden if a certain answer option is selected, however I do want the comment field always be present so I don't think I can achieve it with conditions.
K2Kom.mandatory=if(K2_SK2Q001 == "Ei ole nõus", "")
K2Kom.mandatory=if((K2_SK2Q001 == "Ei ole nõus", "") OR (K2_SK2Q002 == "Ei ole nõus", "") OR (K2_SK2Q003 == "Ei ole nõus", "") OR (K2_SK2Q004 == "Ei ole nõus", "") OR (K2_SK2Q005 == "Ei ole nõus", "") OR (K2_SK2Q006 == "Ei ole nõus", ""))
sum(countifop("==", 'K2K01', that.K2), countifop("==", 'K2K02', that.K2)) > 0
(sum(countifop("==", 'K2K01', that.K2), countifop("==", 'K2K02', that.K2)) > 0 AND !is_empty(K2Kom)) OR sum(countifop("==", 'K2K01', that.K2), countifop("==", 'K2K02', that.K2)) == 0
{ if( (sum(countifop("==", 'K2K01', that.K2), countifop("==", 'K2K02', that.K2)) > 0 AND !is_empty(K2Kom)) OR sum(countifop("==", 'K2K01', that.K2), countifop("==", 'K2K02', that.K2)) == 0, 'Valid', 'Invalid!' ) }