I made an informational form and wanted to disable the or at least make invisible the Submit button. Anyway I can do that without resorting to creating the form outside Survey123?
Solved! Go to Solution.
It is possible to hide the submit button in the web app using URL parameters when launching the web form. The parameter to use is hide=submit. Please refer to following documentation:
As for the Survey123 field app, there is currently no way to disable or hide the submit button. However you can use a relevant/conditional question at the end of survey, right before the submit button, that has a constraint on it, so that when the value doesn't match, the constraint throws a custom message and/or displays a note in big red letters that says "This survey can not be submitted". You can build up the constraint to be based on several other questions or values in the survey that must be met for it to be submitted.
This can also be done for web app too if you want the submit button to be conditional versus hiding it all the time using above URL parameter.
Regards,
Phil.
Hi Mazza,
Are you referring to the field app or web app? Can you expand more on the use case of not allowing the user to submit a survey? Are you displaying previously entered data or passing information via url scheme? Or are you just displaying notes and using it as an informational html web page?
Currently it is not possible to hide the submit button in field app or web app as a survey is designed to collect survey responses. If you think it is a good idea and other users may benefit from it, I suggest you create it as an idea on the ArcGIS Ideas page and hopefully other users vote for it and we can access this as a new enhancement.
Phil.
Yes, I want to show some relevant information to an existing Survey, and may need to pass something to the user, but even if it does not pass information, the ability to have an informational form without the submission URL link would be very useful to us. I don't want to clutter the survey or make it more complicated to the average user. But those who need special information I wanted to add a link to another form where the relevant details can be queried. I would like to have the ability to create informational forms that draw-out data from any dataset just like a survey form, but they are only for informational purposes and donot collect information.
@MaazaMekuria Did you find a solution? I would definitely thumbs up this idea if you have it on ArcGIS Ideas.
We have a Survey123 that if conditions are not met, then we don't want the user to Submit. If they try to Submit, an error message appears at the top. Saying that required fields weren't entered. But that's by design. If they answer no to certain questions, we purposefully hide the other questions. Is there a way to grey out or hide the Submit Button?
It is possible to hide the submit button in the web app using URL parameters when launching the web form. The parameter to use is hide=submit. Please refer to following documentation:
As for the Survey123 field app, there is currently no way to disable or hide the submit button. However you can use a relevant/conditional question at the end of survey, right before the submit button, that has a constraint on it, so that when the value doesn't match, the constraint throws a custom message and/or displays a note in big red letters that says "This survey can not be submitted". You can build up the constraint to be based on several other questions or values in the survey that must be met for it to be submitted.
This can also be done for web app too if you want the submit button to be conditional versus hiding it all the time using above URL parameter.
Regards,
Phil.
If anyone is looking to disable their submit button, the accepted solution sort of gives you what you are looking for but it's more complicated than that.
In my case I want to disable the button if they select "Private" in a question named "public_or_private"
I added a text row to Connect that contains
Name: disable_submit
Label: (if you don't want a visible label)
Required: yes
Readonly: yes
Calculation:
if(selected(${public_or_private}, 'Private'),${public_or_private},'')
Plain english calculation translates to:
if selected is "Private" return what it says - which happens to be "Private", otherwise return what's between the '' at the end
In my case what's in the '' at the end happens to be a unicode zero width space because a space didn't work, you can put a - or * or . or whatever you like in there, I just need my submit to not work when it's "Private" and don't want it to say anything in the area otherwise
Constraint:
${public_or_private} != 'Private'
constraint_message::default
The submit button is disabled because the property owner type is:
Then the rest of the survey has
relevant:
${public_or_private} != 'Private'
except one field that I want show when the select "Private"
If possible can you provide your xlxs form as an example? I'm trying to do the same thing. Thank you.
Thank you so much! I followed your logic but it took a bit of trial and error. Brilliant solution. Thank you.