Choices from Previous Text Questions

hi community. is there a way to reference answers from text question types as your choices to your select_multiple question (please refer to the screenshots of attempts below). also, i want to limit the number of choices to appear depending on how many text questions will be answered
image
image

Hello @hm11,
With your coding/naming system, you might try:

  1. Create a calculate variable, calculating the number of non-empty text questions.
  2. And then use this as a choice_filter (column) against name: name <= ${NoOfTextanswers}.

Precondition is: The initial other text questions are sequentiell. So, e.g. other3 will not happen without other1 and other2.

With the (famous) search option of this forum you find more examples and previous discussion for your topic, e.g.

Also, pay attention, there is a problem with the
choice label reference in Enketo when combined with a choice_filter (see forum posts). But, as far as I know, it is OK in Collect.

1 Like

thank you so much @wroos . it works!

1 Like

Hello @hm11,
Fine!
Maybe you could share the related part of your form with the final solution here, please. As an example for the community.

1 Like

sure. here’s a screenshot of what worked for me. for the choices sheet, it is the same as before

thank you again @wroos

1 Like

hi @wroos , it seems this approach is not working consistently. I am testing it now using the same platform that I used earlier (ODK xlsform validator) and the choices are not appearing as before

here’s a the screenshot of how it worked before
image

for your assistance please

Hi hm11,

Could you please provide me the xlsform for solved on this issue “Choices from Previous Text Questions”… I am also searching resolution for this problem, if you can support me It would be grate and I will happy.

With Regards,
Ramesh

sorry dear I also have
somehow the same problem but a bit different.
I want to use from choice filter for the follow up question. it works but for the previous question I have an ‘other’ choice as well and when the choices is filtered for the follow up question it bring the ‘other’ itself but I want to have the text which entered for the other text box come as a choice for the follow up question. if anyone could help me would be greatly appreciated. thanks