POST
|
Nope. Cant trick Survey123 I guess. Bummer. Thanks for all the help! Please let me know if you have any other ideas. I'll repost if I figure out an solution.
... View more
05-21-2019
03:17 PM
|
0
|
1
|
199
|
POST
|
Oops. I fixed the error in my if statement, but now Survey123 has another issue with calculations.
... View more
05-21-2019
02:12 PM
|
0
|
3
|
948
|
POST
|
I haven't written out the full if statement. I wanted to see if something circular like this worked. My current if statement is if(${lastChoice}= 'R1','L1',R2'). In the past I have only used if statements for select_one or select_multiple questions so I'm certain something is missing. Here are screen shots of the most recent error and excel doc:
... View more
05-21-2019
01:30 PM
|
0
|
5
|
948
|
POST
|
Survey123 appears to be struggling with the if statement in the calculation field of the repeat. I get this error: "ODK Validate Errors:>>Something broke the parser. See above for a hint (above reads: Error converting XLSForm) Dependency cycles amongst the xpath expressions in relevant/calculate. Result: Invaild" It doesn't work when the if statement is entered in the default field.
... View more
05-21-2019
09:44 AM
|
0
|
7
|
948
|
POST
|
Yes this makes sense. And yes,a mistype. I meant to say "calculation column" not "relevant". I'll give it a try and report back. Thanks for the assistance!
... View more
05-21-2019
09:13 AM
|
0
|
0
|
948
|
POST
|
Correct. I think I understand what your are suggesting but I'm not exactly sure what/where I need to be entering these calculations. Would you mind being more explicit? My repeat question is named ${loc} and the four available choices are R1, L1, R2, L2. If I understand correctly, the idea is to create a text field (${caploc}) outside the repeat that is capturing the answer of the repeat and the repeat question relevant column is referencing ${caploc}'s value? So the answer for ${loc} in the first repeat will need to be selected by the observer and then the default if statement would start the cycle of conditional defaults?
... View more
05-21-2019
08:49 AM
|
0
|
10
|
948
|
POST
|
I have a repeat set of questions that starts with a select_one question with 4 options. The point of this question is to keep the observer on an unbiased path when taking measurements. The question is "What is your location from the center of the stream channel?". The four options are "Left 1 meter" (L1), R1, L2, R2. I would like the answer to cycle default in that order. There is no constraint on the number of repeats. The idea is that the location is recorded in the repeat table but the observer isn't changing the location from the default. Instead they are using it to guide their sampling. If there is something obstructing their ability to take a measurement, they can change the location and the default cycle resets from that question onward. Is this possible?
... View more
05-20-2019
04:43 PM
|
0
|
12
|
1413
|
POST
|
05-16-2019
03:10 PM
|
0
|
1
|
248
|
POST
|
Phil, int() didn't do it but bind:type int did! Thanks a bunch! Calene
... View more
05-16-2019
08:36 AM
|
1
|
0
|
821
|
POST
|
I am almost there with solving this issue but the syntax I'm using doesn't return an integer I can use in calculations. Instead its returning a string of text. What syntax should I use in the calculation column for my five hidden rows within the repeat. Please see inserted screen shots:
... View more
05-15-2019
02:49 PM
|
0
|
2
|
821
|
POST
|
Is it possible to have Survey123 tally selected answers in a repeat? The repeat "select one" question has five answers to choose from. I need to calculate the number of times each answer is selected for some calculations later in the survey outside of the repeat.
... View more
05-13-2019
09:20 AM
|
1
|
4
|
993
|
Title | Kudos | Posted |
---|---|---|
1 | 05-13-2019 09:20 AM | |
1 | 05-16-2019 08:36 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|