roam-qgis / Roam

Simple data collection built using QGIS.
http://roam-docs.readthedocs.org/en/latest/
GNU General Public License v2.0
171 stars 61 forks source link

Events on option row only works on numbers (not string values) #406

Closed Lendog closed 6 years ago

Lendog commented 6 years ago

Events doesn't work when string is used eg image ... Option row values image

no errors just doesn't work. Also tried many different variations

but when a number is used eg below it does work image

... Option row values

image

bzeeb commented 6 years ago

Will investigate and confirm.

she-weeds commented 6 years ago

Can you try this with some text other than 'None' (eg N, NA, Nil or Absent - or even 'None ', i.e. with a space after - this tends to get stripped out when saved as a shapefile)

I have been able to use show/hide and set value events dependent on text input, but not if they use the string 'None', bizarrely enough - that gets interpreted as NULL (this warrants a separate issue).

Lendog commented 6 years ago

Thanks for looking into it. This issue maybe able to be closed. For some reason it seems to be working fine now :-s even with 'None'

I'm using this at the moment and is working as it should optionrow

Possibly because its using ' ' instead of " " as per original screen grab .. although for memory I tried both. or possibly because this is the only event item now.

Anyway thanks for helping :)

Lendog commented 6 years ago

Actually I just tested it with "None" - doesn't work. Tested it with 'None' and it works.

So possibly could be my inexperience with it :) ... sorry

Anyway thanks for the help. I might try to close the issue, you might have just resolved it for me :)

Lendog commented 6 years ago

Actually any chance to get a string example in

http://roam-docs.readthedocs.io/en/latest/admin-guide/widgetevents/

to assist others. I can't see how to edit that page, so I'm not sure if I have the ability to do it.