Dear all,
the possibilities in Survey123 Connect are really great.
Unfortunately sometimes the syntax is not easy.
In my form I have the following challenge.
People have to fill out EITHER the text-field "tax-id"
or the text-field "Company-tax-id".
I try to solve it via constraints.
My question is:
Is it possible to create "IF" or "OR" constraints?
So far I have an regular-expression-constraint for the tax_id-field (regex(., '^\d{11}$'))...
but I need a constraint-solutions that checks:
a) Are the fields "tax-id" AND "Company-tax-id" empty? (not allowed, if they both are empty a constraint-message should appear)
AND
b) Is the syntax of a tax-id correct (regex(., '^\d{11}$')) (ok, for that I have a solution)
AND
c) allows the text-string "Not existing" (but only for ONE of the two fields)
Could anybody give me a hint how to solve that? If a) + b) +c) is too difficult I would be happy also about a solution for a) + b) 🙂
Thank you very much, Kai