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.
Why not use a constraint on the question that says . != "no service yet" and make it required. If there is just the one option then they cannot submit with that selected or leave it blank. Maybe I am missing something but seems doable.
Thanks. I have tried out your workaround. You are right, it is doable.
I hadn't used a Constraint in a production survey before and was concerned about the use of a function in one when I saw in the documentation "In the constraint expression, the input for the question is always represented by a period." The documentation about Constraints doesn't happen to show any examples using functions, but it works (and looks odd). All of our pickups are on Friday, so the constraint is starts-with(., 'Friday').
We would still prefer to be able to suppress the submit button. The error message at the top might confuse the user. They might think there is something they have done wrong and that they need to try to do something differently to get their mattress picked up. It is misinformation. There are no errors in the survey.
You do not have to use a period you can write out the ${fieldname} just like all other places. In fact I use this a lot since when using > sometimes it things its HTML.
Yes, it worked when I changed the constraint to:
starts-with(${pickup_area}, 'Friday')
"In the constraint expression, the input for the question is always represented by a period." Seems pretty definitive. I don't really see the need for shorthand here and prefer the long version for the sake of my coworkers who might have to tweak something if I am unavailable. Good to know about the HTML confusion too. Perhaps James Tedrick has something to add about this?
It would be interesting to show or hide the submit button based on one or more responses.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.