The script works fine in the apk, but not on the web

Dear Kal Lam

I share the form I just made:

XLSForm:

TES WEB.xlsx (15.8 KB)

https://ee.kobotoolbox.org/x/5kbOYpkL

script works fine in apk, but not on web.

I need to show a record of why the respondent did not pass at the end of the interview. If terminated in Q1 at the end of the interview there is a note that terminated in Q1.
If terminated in Q3 at the end of the interview there is a note that terminated in Q3.

this apk runs fine, but on the web if terminated in Q3, at the end of the interview a note appears that terminates in Q1 and Q3.

this is why I always recommend using apk instead of the web.

is there something wrong with my script or is there a bug in kobo?

Thanks

Regards
Tulus

Sorry did not quite understand your issue clearly. Would you mind explaining it again (maybe with an illustration if possible, so that the community should also be able to understand the issue pictorially)?

Dear Kal

Q1
A.Brazil [terminate]
B.Mexico [terminate]
C.Singapore [terminate]
D.Indonesia
E.Other [terminate]

Q3
A.Yes
B.No [terminate]

##############

if Q1 is not selected D, it ends
in the summary appears the statement “Q1 tidak terpilih D (Indonesia)”

if Q3 is selected B, it ends
in the summary should appear the statement “Q3 terpilih B (TIDAK)”

is this a bug? because when Q3 is selected B
in the summary appears the statement “Q1 tidak terpilih D (Indonesia)Q3 terpilih B (TIDAK)”

Thanks

1 Like

I have choice filter issue too.

Q14a
Q14b # not(selected(${Q14a}, name))
Q14c # not(selected(${Q14a}, name)) and not(selected(${Q14b}, name))

parameters : randomize=true

apk = OK
web = choices label not show

OK. Much clear now. So do you wish them to terminate when you select A, B, C and E for Q1 and B for Q3? Or what is it that you expect to happen when you select them?

Yes, and it’s work on apk.
but if you use a link/web it seems confusing.

The image I uploaded also did not appear, even though there was no problem in the apk.

please, try it.

@tulus45, I think it works for me even in Enketo. Whenever I see a label with terminate and if I press that choice it terminates with the note message displayed. Isn’t this what you are expecting?

FYI, I tried this with Chrome on Windows 11.