Text Question with None Option

1. What is the problem? Be very detailed.
I have a scenario, text question and none [multiple] on the same page.
1.if i enter something in text type question than None should not be select
2.if i select none than text type question must be blank
3. response is required in text type question or mutiple select

2. What app or server are you using and on what device and operating system? Include version numbers.
OKD Collect, ODk Aggregate

3. What you have you tried to fix the problem?
i have tried constraint "(not(selected(., '99')) or (${Q22B} != ''))" but all in vain

4. What steps can we take to reproduce the problem?

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.

Hi @noman.s2325

Not sure I understood your case.
Could you share the xls form?

Meanwhile a couple of comments.

  • I think a " symbol is missing in our constraint

should be "(not(selected(., '99')) or (${Q22B} != "''))"

  • if 'none' is the only option of the select_multiple, than you can consider two alternative approaches:
  1. first ask if there's any text or none; if none is selected you skip the text, otherwise you move to the text question
  2. you use a special coding for none option (e.g. "99"). In this case you want to constraint the text answer to accept strings of minimum 3 characters and the answer '99'. This way you would avoid empty answers and the user would have a clear way to indicate that the answer is "none". You might want to include a clear hint for this question.

I hope this helps!

Best,
Andrea