Hi, to answer the request at the bottom of this email on the formhub-users
list, I have been trying to see if regex relevants work on gps fields.
Turns out they don't. Neither do either of lines beyond the first below
type name label relevant
calculation
geopoint gps_field GPS
note blank_note Its blank! ${gps_field}=''
note blank_note_re Its bank (re)! regex(${gps_field},
'^$')
calculate gps_string
string(${gps})
Actually, if I just skip the gps question, then nothing breaks (and the
relevant in the two notes works as expected). But when any of the latter
nodes are present in a form, as soon as I hit "record location", things
break.
The first two being unsupported seems okay... but shouldn't the calculate
at least work?
And finally, is there anything you can you do with a gps field to satisfy a
request similar to Thomas's below?
cheers,
--p
I would like to back up my location recording (question type geopoint)
with an open text description of the location (question type text), IF the
accuracy of the GPS recording is below a certain threshold (e.g. >50).
It seems that in xlsforms I do not specify the geo variables further (i.e.
long, lat, altitude, accuracy), instead these get all stored in my geopoint
variable separated by spaces.
How would the skipping logic (the statement in the relevant column) have to
look like, to only display the question if the accuracy of the geopoint
question was less than +-50m?
Alternatively, if that is not possible, how would it look like if capturing
the geo-coordinates was not successful (i.e = null, or similar)?
Thanks for helping out!
···
From: Thomas Gotschi To: formhub-users@googlegroups.com(original here:
https://groups.google.com/d/topic/formhub-users/KK6IrbqnkQo/discussion)