Hi list,
I tried the 'or' operator for two fields but it does not work
Example I wanted a field to not show up until I have to variables
${var1} = 'value' or ${var2} = 'value'
Does anyone have a link to details on operators?.
Thanks,
Nome
Hi list,
I tried the 'or' operator for two fields but it does not work
Example I wanted a field to not show up until I have to variables
${var1} = 'value' or ${var2} = 'value'
Does anyone have a link to details on operators?.
Thanks,
Nome
Nome,
'or' works. There must be an another issue with your form. Make a 1
question form and try or.
http://www.w3schools.com/xpath/xpath_operators.asp
Yaw
On Mon, Jul 27, 2015 at 6:46 AM, Nomeneta Saili nome.saili@gmail.com wrote:
Hi list,
I tried the 'or' operator for two fields but it does not work
Example I wanted a field to not show up until I have to variables
${var1} = 'value' or ${var2} = 'value'
Does anyone have a link to details on operators?.
Thanks,
Nome
--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en
You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Nome,
There are two things you can try:
(1) replace = for , e.g.: replace ${var1}='value' by ${var1},'value'
(2) add brackets: (${var1}, 'value' or ${var2},'value')
Good luck!
Anja
A mistake I made early in form building, which could be the cause of your
issue, is not knowing that the relevant fields need to use the syntax of
"selected(${Var},"1")" if it is referring to a "select_multiple" question.
If you use the ${Var}=1 syntax for a "select_multiple" it won't always
function as expected.
Thank you so much guys/gals. Will try it out thanks.
A mistake I made early in form building, which could be the cause of your
issue, is not knowing that the relevant fields need to use the syntax of
"selected(${Var},"1")" if it is referring to a "select_multiple" question.
If you use the ${Var}=1 syntax for a "select_multiple" it won't always
function as expected.On Monday, July 27, 2015 at 7:46:40 AM UTC-4, NMZ wrote:
Hi list,
I tried the 'or' operator for two fields but it does not work
Example I wanted a field to not show up until I have to variables
${var1} = 'value' or ${var2} = 'value'
Does anyone have a link to details on operators?.
Thanks,
Nome