We would like to be able to take a geopoint, do a spatial query, and depending on the returned result, inform the user whether or not a specific type of recycling service is available in their geographic area. If the service is not available then we don't want them to submit a survey at all.
We are currently trying to do this by getting the geopoint from the Address Question and doing the spatial query part using the Search function in the appearance column of a Select Multiple Question. For example (abbreviated), search("area?url=https://.../MapServer/11", "intersects", "@geopoint", ${address_geopoint}). When the recycling service will not be available again until next year in the user's area, for example, we remove the text from the Submit Button as seen here:
When the recycling service is available at the user's address, the user selects the (single) date that the service is available and the process of successively displaying more questions begins:
The problem is when the recycling service is not available, some users are hitting the unlabeled submit button anyway. It not only might confuse them, but the data that we get ends up just containing their address and the select multiple answer that says the service is not available to them. We are left with data we have to filter out of the because it is irrelevant, and we then wonder if those users are going to set items out for collection that we will not be coming to pick up. Therefore it would be great to be able to suppress the Submit Button using the relevant column.