digitalDave
Member
Hello
I hope this is an easy question to answer.
I have created a form with a single checkbox element, called "quick entry".
If it is checked then a few other fields disappear and some validations are affected.
I achieved this no problem.
However in another form I have a database join element and I want to add a data-where clause.
"where quick_entry = 1"
But the checkbox value is stored in an array like this ["1"]
I have tried =
"1"
'1'
["1"]
"['1']"
All to no avail.
So my question is how to test for the value in an array?
I hope this is an easy question to answer.
I have created a form with a single checkbox element, called "quick entry".
If it is checked then a few other fields disappear and some validations are affected.
I achieved this no problem.
However in another form I have a database join element and I want to add a data-where clause.
"where quick_entry = 1"
But the checkbox value is stored in an array like this ["1"]
I have tried =
"1"
'1'
["1"]
"['1']"
All to no avail.
So my question is how to test for the value in an array?