I've got a simple series of questions:
- (Q-Code EduNum) How many educators work at your site?
- (Q-Code EduLeft) How many educators have left within the last 12 months?
- (Q-Code EduDegree) How many educators have a Bachelor’s Degree?
I'd like to set up relevance so the first question controls whether or not the next two appear. The problem I have is that relevance is behaving differently when TOKEN is numeric vs when TOKEN is alpha-numeric. While TOKEN is alpha-numeric, everything works as expected, but once I start reviewing surveys with strictly-numeric TOKEN, the relevance no longer reacts to the first question, and the second two questions never dynamically appear.
Testing conditions:
I have just upgraded from version 2.05+ to version 2.56.1, and I don't recall having this issue in the older version. All three questions are numerical input, and all three are mandatory. For relevance, into the second two questions, I'm entering the value: EduNum. I am running Windows & Pro, and using the Waterfox browser 50.0.2. I have also tested in Chrome and I get the same behavior.
While working to debug it on my own, I discovered that if I modify the TOKEN table by adding a text character to a TOKEN, then the relevance works. For example changing TOKEN # 3461 to 3461t makes the relevance work as expected. (Needless to say the TOKEN becomes unusable because it no longer is the correct value. In my case I use a very specific TOKEN in order to mirror a database ID.)
But further testing showed a more complicated picture. I decided to re-load my TOKEN table. I deleted my current TOKEN table, modified the csv, and re-uploaded it with a new record. This new record was created by copying the record for TOKEN # 3461 exactly as is, except renamed as 3461t. However, when I preview the survey, neither 3461 nor 3461t demonstrates the correct relevance behavior.
If I return to my TOKEN table, modify a strictly-numeric TOKEN by adding an alphanumeric character, the relevance still fails. But if I promptly delete the alphanumeric character from the same TOKEN, then the relevance works.
The last bit of strangeness is that if I attempt to click "submit" while relevance is not working correctly, this somehow forces relevance to (somewhat) work again. The survey refreshes with the missing questions, complete with red-text and alerts that various questions are required.
The very painful work-around is to add an alphanumeric character, then promptly delete it from each TOKEN. I'm getting the feeling that I stumbled across a bug. But I was hoping to get some feedback before I went that route.