Hi,
I've created a form, with a coded concept where one of the possible answers is the concept 6157^Si respuesta^99DCT. Then I've placed a numeric concept that has in the calculate field the following value
(function () {if(/form/obs/tuvo_menarca/value=='6157^Si respuesta^99DCT' ) { value = 1; }} ) ()
However in the Preview tab and when I fill out the form, the value isn't calculate.
I've tried using /obs/tuvo_menarca/value, using double instead of single quotes around the 6157^Si respuesta^99DCT, but it hasn't worked. What am I doing wrong?
Also, I know there's a simpler way of doing this calculation, but this is just an initial one for something more complex which will require if and else ifs.