We have a feature service published from Survey123. Styling tags were used in the label for multiple fields. But for some reason, following two examples' closing tag for boldface was left as part of the alias in the feature service. Survey123 form worked fine, but we had a custom geoprocessing tool that reads aliases from the feature service and generates Word report form. And having that closing tag in the alias caused an error. We addressed the issue with code, but I wonder which aspect of these labels caused the tag to become a part of the alias text?
Survey123 Label
<b>Outlet energy dissipator and erosion control protection (e.g., riprap) is free of scour, erosion, or displacement<b/>
<b>Control Structure manhole ladder/steps, cover and/or access door appear to be present, secure, and operational without damage<b/>
When viewing the hosted feature layer in ArcGIS Pro:
How the browser draws the text in the REST end point page:
Solved! Go to Solution.
HTML end tag is </b> not <b/>
HTML end tag is </b> not <b/>
Thanks for catching that! We inherited several forms from another consultant, and half of our work has been finding hidden gems like this.
In case it helps: When authoring the XLSForm, it is also possible to use the bind::esri:fieldAlias to set the alias of the field. If bind::esri:fieldAlias is empty, then the label of the question becomes the alias, but you can override it.