Invalid Script for SES

Hi Kobo Team,

I have a script to calculate SES, but I think there is an invalid script, I have checked on I don’t know hot to make it a valid script.

Can I share my xls form and could you please help me on this?

Thank you in advance

@arif_1234, yes please feel free to share the relevant section that has the issue instead of sharing the entire XLSForm. Maybe the community should be able to help you out. :construction_worker_man:

Hi @Kal_Lam ,

Please review this form. Thank you in advance.

SES - Kobo v1.xlsx (14.6 KB)

@arif_1234, I had a quick scan in your XLSForm and could observe the following:

Maybe you will need to rewrite (${AK}=1 and ${S12}=1) as (${AK}=1 and ${S12}='1') as S12 is a select_one question type.

Let us start with this. In addition, you could work with only the first calculate question type and leave the rest or even remove them for now as if you are able to fix the first calculate question type you should be able to fix up all the remaining calculation.

1 Like

Hi @Kal_Lam ,

Thanks for the advice, it works.
But I have a new problem, i can’t download the final form on kobocollect.
Please review this error. Do you have any idea?

Thank you in advance.

Maybe you will need to validate it with the online validator to see if there are any other syntax issues.

Hi @Kal_Lam

Thank you, it works.

1 Like