I'm using LimeSurvey Version 4.3.15+200907 and created a fairly short survey with multiple groups. During debugging, I found that one of my group conditions was incorrect, but when I try to save the change, I am blocked from doing so.
The survey is still in the design phase, so nothing has been activated. Furthermore, I realized that even if I made NO CHANGE AT ALL, trying to save the Group definition results in an error message.
This problem began shortly after I added a Calculated field to the end of the previous group.
The calculation formula was as follows:
if (((G02Q06.NAOK == "AO05") and (is_empty(G02Q08.NAOK))),'0','1') and is assigned to the variable G02Q41.
and because this is a calculation and not an assigned list of specific answers, when I try using the value of this calculation as a condition on the next group (i.e. the condition that I can no longer edit), I think that's part of the problem.
The condition for the next group is as follows:
(((!is_empty(G02Q41.NAOK) && (G02Q41.NAOK == 0))))
Note, I tried to enter the string '0' after the == sign, but when it got saved, the quotes were removed. Anyway, this condition is incorrect. It should say "== 1" at the end, but I am not allowed to change the condition, and even if I do nothing to the condition except to try to save it, I get the error shown in the attachment.
I have no clue what to try next.
EDIT: Just for kicks, I tried to completely remove the group condition and still got the error shown in the attachment.
EDIT #2: Tried to create (from scratch) a matching group definition. I was able to give the group a name and a description. I saved the group definition without providing a condition. It saved without issue and was able to come up for editing. I then tried to add the condition:
(((!is_empty(G02Q41.NAOK) && (G02Q41.NAOK == 1))))
Notice that I corrected the error in the previous condition. When I tried to save the altered definition (which now contained a condition), the SAVE button turned dim, the gear started spinning, and the SAVE never completed. There's definitely something about this condition that limesurvey does not like....
The topic has been locked.