|
POST
|
Hi Nicole Looking at your IF statement and the last line of the error message, it looks like the false argument is missing from the final nested IF statement (i.e. the value to return if all arguments are false). IF statements require three arguments: if(condition, value if true, value if false). So your calculation could look like: if(${CurrentCapacity}>${Capacity_Total}, 'Over Capacity', if(${CurrentCapacity}=${Capacity_Total}, 'At Capacity', if(${CurrentCapacity}<${Capacity_Total}, 'Under Capacity','No capacity entered'))) If you want to return null instead, use '' in place of 'No capacity entered'. Hope this helps! Best, Jim
... View more
04-20-2020
06:34 PM
|
0
|
0
|
554
|
|
POST
|
Hi Jerry Yes this is possible using pulldata() to look up the value from a CSV file. Say you have a CSV file named solubility.csv that looks something like this:
temp,baro700,baro701,baro702
20.0,8.36,8.37,8.38
20.1,8.34,8.35,8.37
20.2,8.32,8.34,8.35
(etc.) And the user enters values into ${temp} and ${pressure} questions, you could then use a calculation similar to this to retrieve the value:
pulldata('solubility',concat('baro',${pressure}),'temp',${temp}) Plenty of great info on pulldata in this blog: https://community.esri.com/groups/survey123/blog/2016/10/27/the-pulldata-function-access-external-data And also documented here: Formulas—Survey123 for ArcGIS | Documentation Hope this helps. Best, Jim
... View more
04-20-2020
05:43 PM
|
2
|
0
|
642
|
|
POST
|
Hi Fiorella Many thanks for the XLSForm. I stripped the survey down to retain only the calculations that are causing an issue, namely the s# and l# sets of questions. If I further reduce the number of calculations I get to a point where 23 or 24 sequential calculations will work, but any more than that and Connect crashes. I'll investigate further and get back to you. One thought though is perhaps there's a way to achieve the same result without the need for all the iterative calculations? The ${calc_cant_lect} question returns how many readings have been entered. Would it be possible to replace the 60 x l# questions by using this number along with ${calc_fact_dat} in a calculation? Something like:
(${calc_cant_lect} * ${calc_fact_dat}) - (${calc_fact_dat} - 1)
Or...
((${calc_cant_lect} - 1) * ${calc_fact_dat}) + 1 Not sure how that would affect your calculations further down the form. Best, Jim
... View more
04-08-2020
11:43 PM
|
0
|
3
|
4248
|
|
POST
|
Hi Fiorella Thanks for the additional info about the crash. Strange! Would it be possible to share your XLSForm so I can help troubleshoot? Also please note the latest version of Connect is version 3.9.120 (released last week). Best, Jim
... View more
04-06-2020
04:22 PM
|
0
|
5
|
4250
|
|
POST
|
Hi Yaser The 'or' operator evaluates two expressions and returns 'true' if either of the expressions is true. If set up correctly an 'or' expression should return true or false. For example, you could use an expression like the one below in the relevant column to show/hide a question if either of the expressions is true, or use it inside an if() statement: ${age} < 20 or ${age} > 60 XLSForm operators are listed here: Formulas—Survey123 for ArcGIS | Documentation You cannot use 'or' to substitute one calculation or value for another. Could you please provide some more detail on what you're trying to achieve with the calculation and what your expected result is so I understand the logic? If you could share your XLSForm that would be useful; you can attach files to your post using the 'advanced editor'. Best regards, Jim
... View more
04-05-2020
11:16 PM
|
0
|
0
|
711
|
|
POST
|
Hi Leif Select_one and select_multiple questions can be presented as a drop-down using the minimal or autocomplete appearances in XLSForm. Please see the documentation for more info: Appearance—Survey123 for ArcGIS | Documentation Hope this helps Best, Jim
... View more
04-02-2020
07:58 PM
|
6
|
1
|
9528
|
|
POST
|
Hi Fiorella Perhaps a pulldata() function would be useful for your survey. This method allows you to do a lookup from the values in an external CSV file. Please see a great explanation on this method here: https://community.esri.com/groups/survey123/blog/2016/10/27/the-pulldata-function-access-external-data And more here: Formulas—Survey123 for ArcGIS | Documentation Regarding the crashes, which version of the app are you using and on what device and OS version? Best, Jim
... View more
03-31-2020
07:40 PM
|
0
|
7
|
4250
|
|
POST
|
Hi Ben The trick is to convert the time questions to decimal time. So your calculation would look something like: round((decimal-time(${time_end}) - decimal-time(${time_start})) * 24,1) Note that the web app supports decimal time only, while the field app supports Epoch time and decimal time. This Help topic gives a good comparison of the two storage methods: Decimal date time—Survey123 for ArcGIS | Documentation And this blog post covers all the ins and outs of working with dates and times: https://community.esri.com/groups/survey123/blog/2016/04/17/dates-and-time-in-survey123-for-arcgis As mentioned in the blog, there's a handy Dates & Time sample survey available in Connect which has plenty of good examples. Also see the comments in the blog post regarding issues with rounding. Hope this helps Cheers, Jim
... View more
03-25-2020
06:40 PM
|
1
|
3
|
4943
|
|
POST
|
Hi Louise Thanks for the screenshot. In XLSForm, the operator for division is "div". If you replace the forward slashes with "div" this expression should work, i.e. (((${max1}-${min1}) div ((${max1}+${min1}) div 2))*100)<=10 XLSForm operators and functions are described here: Formulas—Survey123 for ArcGIS | Documentation Hope this helps. Best, Jim
... View more
03-25-2020
04:48 PM
|
2
|
1
|
1262
|
|
POST
|
Hi Jules Could you please provide your XLSForm and a bit more detail (perhaps as an example) on what you're hoping to achieve? You can attach files to your post using the 'advanced editor'. Thank you, Jim
... View more
03-25-2020
04:19 PM
|
0
|
4
|
1522
|
|
POST
|
Hi Branden At first glance your XLSForm looks okay (besides a superfluous closing parenthesis on the location calculation). Could you please provide your XLSForm and CSV so I can take a closer look? You can attach files to a GeoNet post using the 'advanced editor'. Best, Jim
... View more
03-25-2020
04:14 PM
|
0
|
0
|
688
|
|
POST
|
Hi Michael Van Hatten Apologies, on further testing it looks like a condition of greater than zero should work (instead of =true). Please give something like this a try: Best, Jim
... View more
02-27-2020
06:09 PM
|
2
|
1
|
2209
|
|
POST
|
Hi Michael You could use an IF statement inside the Google Sheets module for the target date field, i.e. if the incoming date question is TRUE (contains a value) write the formatted date, else write null. The function might look something like: Hope this helps. Best, Jim
... View more
02-24-2020
10:33 PM
|
2
|
3
|
2209
|
|
POST
|
Hi Kristin Would it be possible to provide your XLSForm so I can take a closer look? You can attach files to a GeoNet reply using the advanced editor. Thanks, Jim
... View more
02-24-2020
03:50 PM
|
0
|
0
|
2017
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-25-2020 06:40 PM | |
| 1 | 08-11-2024 10:11 PM | |
| 1 | 08-04-2019 06:44 PM | |
| 1 | 01-08-2025 03:26 PM | |
| 1 | 06-29-2020 07:21 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|