Select to view content in your preferred language

Disable the Submit Button on Survey123 Form

7215
15
Jump to solution
03-11-2019 06:34 PM
MaazaMekuria
Frequent Contributor

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? 

Tags (3)
15 Replies
AaronPDXPaul
Frequent Contributor

I also got this to work.

Brilliant.

Now, can esri please implement into the core of the product somehow?

Thank you

0 Kudos
AaronPDXPaul
Frequent Contributor

Can the error message be styled to look "better"?

Something besides red box and red lettering.

Thank you

0 Kudos
m3
by
Frequent Contributor

At the time I figured this out, that part of the form accepted very little HTML, if any.  Unless ESRI updated S123 to allow more CSS or HTML, then probably not still

0 Kudos
ZachBodenner
MVP Regular Contributor

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!

Happy mapping,
- Zach
0 Kudos
AaronPDXPaul
Frequent Contributor

@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?

0 Kudos
ShariF
by
Regular Contributor

You could create a note then use relevancy to show the note,  for example, when another field is left blank, for example: string-length(${otherfield}) <1).  However, even the note doesn't have a whole lot of html customization that I found.

This is the solution I came up with for people to type in their address and find out when trash pickup is for their location. When at least 6 characters are typed into the address bar, several notes will show below: 

ShariF_0-1759936109445.png

 

0 Kudos