Select to view content in your preferred language

html in constraint message?

556
3
08-22-2023 06:00 PM
ChuckS
by
New Contributor III

Can I use html in a constraint message?  I'm using Survey123 Connect 3.18.123.

I'm using an unordered list in html in my constraint message. Using the field app, this has always worked. Today, I tested the survey in a web browser and I see the html code is displayed. I'm guessing that the html is displayed properly in the field app, but it's not a supported feature.

I've attached an XLSForm that demonstrates the issue, but I'm suspect that someone will tell me that I shouldn't be using html in a constraint message. If that's true, it would be nice to have documentation explicitly state that constraint messages do not support html. Since it worked in the field app, I thought it was supported.

I read this post: https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-quick-guide-to/ba-...

Thanks, Chuck

0 Kudos
3 Replies
ZacharySutherby
Esri Regular Contributor

Hello @ChuckS

The supported HTML is supported in constraint messages.

Thank you,
Zach
0 Kudos
ChuckS
by
New Contributor III

Hello Zach,

It looks like I neglected to attach my XLSForm to my original post. I've attached a new XLSForm that demonstrates the issue. Please try that survey in a web browser to see why I'm claiming that html in constraint messages is not supported.

Also note that both the documentation (you referenced) and Survey123 Tricks of the Trade post do  not mention constraint messages. Why are you assuming that html is supported in constraint messages?

Here are some screenshots.

Field App. Html displays fine.

Constraint test.PNG

Web app. Html does not display properly.

Constraint test web app.PNG

Thanks, Chuck

0 Kudos
ZacharySutherby
Esri Regular Contributor

Hello @ChuckS

You are right apologies I had missed the web app portion of the original post. HTML does not work in the web app when using required_message, constraint_message, External choice lists, External selects, or the randomize=true parameter with choice lists. 

I've added this post to our internal issue to support HTML in the constraint_message in the future and also created an issue to update our documentation to specifically call out the limitation in the web app. Please feel free to reach out to Esri Technical Support to log an official Enhancement to track progress. 

Thank you,
Zach