Customized Messages in Survey 123

594
8
10-12-2018 09:16 AM
Highlighted
New Contributor III

Just i want to show to the user customized message from SQL Server Database or Predefined based on my Query Response. Do we have any mechanism to show to the user on Survey 123 forms . and Any Static messages those can be configurable in xls forms ? to show to the user that , what exactly the issue is ?

Reply
0 Kudos
8 Replies
Highlighted
Esri Esteemed Contributor

Hi Vijay,

I'm unsure of the scenario you are describing.  Are you asking to show a message after submission, or loading from the Inbox?

There are several message options available in the XLS form, but they relate to in form processing.  There currently is not a way to have a message display based on an interaction with the feature service.

Reply
0 Kudos
Highlighted
New Contributor III

After Submitting the Survey, i Want to see the messages like "Successfully Submited and Do you want to submit another survey ?" link to go back in Web version. 

I want to validate the input value entered in the suvey form against the SQL Server Database and display the messages according to that validations (Warning , Error and Info messages). How to do those ? 

Reply
0 Kudos
Highlighted
Esri Esteemed Contributor

Hi Vijay,

Currently surveys published by Survey123 Connect cannot set a post-submission message.

Data validation can be done in-form by setting the validation criteria in the constraint column of an XLS form.  See Formulas—Survey123 for ArcGIS | ArcGIS 

Reply
0 Kudos
Highlighted
New Contributor III

I took below note  from ArcGIS Site 

Common uses for webhooks include sending notifications via email or SMS, posting messages to social media, automatically writing records to a spreadsheet, and updating enterprise databases.

Can We USE RESTful Service to handle POST Request to update and validate the databases ?

Reply
0 Kudos
Highlighted
Esri Esteemed Contributor

Hi Vijay,

Yes, you could run a set of validation rules as part of a webhook; however this occurs after the data has been submitted to the feature service (database table).  If you wanted to conduct the validation and migrate to another DBMS, that would be a use case for a webhook.

Reply
0 Kudos
Highlighted
New Contributor III

Do you know any example that we can use in ASP.NET for Web hook?

Reply
0 Kudos
Highlighted
New Contributor III

I Have created one web service and enabled as POST request. it is exposed to internet and i am getting error Failed to save.  Hide details

connect ETIMEDOUT 68.156.129.228:443
Reply
0 Kudos
Highlighted
Esri Esteemed Contributor

Hi vijay,

This is probably not the appropriate forum to debug ASP.net request handling.  That being said, it sounds like your handler is not providing a response to the event. I would recommend capturing a webhook request so you have the a sample payload and from there developing with a client like Postman to test the handler.

Reply
0 Kudos