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?
Hi @AaronPDXPaul
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:
https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm#GUID-D38D44E2-8CBA-4030-8925-AD8A9F68D4F3
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.
@ZachBodenner Can you provide a link to the live sample or some screen shots of what the solution looks like?
I'm wanting to format the "Message" to not be a Red Box with Red Text.
Or, do you know how to format the message that says what the Form can't be submitted?
This is such a nice solution, I was able to use this to deny submission if the drawn-in feature intersected with some areas that we don't want people working in. I used three questions:
1. Name: getNoBuild, Label: No Build Area (not important, since it's hidden), Appearance: Hidden, bind::esri:fieldtype: null, Calculation: pulldata("@layer", "getValueAt", "attributes.AreaName","<Service Name>", ${polyline})
2. Name: calcNoBuild, Label: Calc No Build (not important, since it's hidden), Appearance: Hidden, bind::esri:fieldtype: null, Calculation: if(string-length(${getNoBuild})>0,1,0)
3. Name: denySubmit, Label: Notice:, Required: Yes, ReadOnly: Yes, Relevent: ${calcNoBuild}=1, bind::esri:fieldtype: null, Calculation: if(string-length(${getNoBuild})>0,1,0), Hint: Row work in this area is currently not allowed. Please contact city staff for more information
Thank you!
Sanitized spreadsheet, let me know if I messed it up cleaning it up
If possible can you provide your xlxs form as an example? I'm trying to do the same thing. Thank you.
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 endIn 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::defaultThe submit button is disabled because the property owner type is:
Then the rest of the survey hasrelevant:${public_or_private} != 'Private'except one field that I want show when the select "Private"
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?
@MaazaMekuria Did you find a solution? I would definitely thumbs up this idea if you have it on ArcGIS Ideas.
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.
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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.