Page 1 of 1

ERROR(CAPI Text)

Posted: March 2nd, 2022, 10:08 am
by mgtoukam
Hi All

I have the following message error in the capi Text

ERROR(CAPI Text, CONDITIONEMENT, English): The question text fill must consist of a single numeric or string expression

In the CAPI text, we use the getvaluelabel() fonction using the ~~getvaluelabel()~~.

Who have the same issue and how does he resovlt it.

Regards.

Re: ERROR(CAPI Text)

Posted: March 3rd, 2022, 3:42 am
by Arjun Brti
Hi mgtoukam,

Try to using question/variable name ~~getvaluelabel(Put the question name here which valuelabel do you want to display)~~. for example ~~getvaluelabel(Q01)~~.

Thank you.

Re: ERROR(CAPI Text)

Posted: March 3rd, 2022, 5:33 pm
by aaronw
This question was answered through email. The issue was that HTML formatting had split variable reference "~~i~~" into two parts:
format-code.PNG
format-code.PNG (3.67 KiB) Viewed 1090 times
Once this was corrected the code compiled:
improved.PNG
improved.PNG (2.3 KiB) Viewed 1090 times