HTML formatting in Survey123 hints not carried through to geopoint map text

404
2
Jump to solution
09-18-2020 04:36 AM
DataOfficer
Occasional Contributor III

On a Survey123 form (developed in Connect, to be used in the field app) we have html formatting for several labels and hints (e.g. bold text). In a geopoint question, we have html formatting for the hint. This displays correctly in the form (tested in the field app) but the same hint is shown in the map view with the html codes but without the actual html formatting. Is there any way around this?

Hint html below, along with screenshots of the form and the map view affected.

Select the record location from the map by either:
<ol><li>using the GPS on your device to find your current location,</li>
<li>entering a grid reference / coordinates in the search bar, or </li>
<li>manually selecting a location on the map.</li></ol>
<p><b>Notes:</b></p>
<p>If you have selected a refuge, this has already been calculated for you.<p>Location accuracy warnings are only relevant if you have used your device's GPS location.</p>
<p>You <b>MUST</b> be signed in and have an internet connection to be able to search using OSGB grid references.</p>

Many thanks,
Rob

0 Kudos
1 Solution

Accepted Solutions
BrettStokes
Esri Contributor

Hi Rob,

This issue here is that your first line ("Select the record location from the map by either:") is unformatted from a HTML perspective. If you add tags to this line (eg <p> tags), the HTML formatting for the rest of the hint will be honored in the form and in the Map widget. Note that the hint text in the Map widget is center justified

<p>Select the record location from the map by either:</p>
<ol><li>using the GPS on your device to find your current location,</li>
<li>entering a grid reference / coordinates in the search bar, or </li>
<li>manually selecting a location on the map.</li></ol>
<p><b>Notes:</b></p>
<p>If you have selected a refuge, this has already been calculated for you.<p>Location accuracy warnings are only relevant if you have used your device's GPS location.</p>
<p>You <b>MUST</b> be signed in and have an internet connection to be able to search using OSGB grid references.</p>

Hope this helps,

Brett

View solution in original post

2 Replies
BrettStokes
Esri Contributor

Hi Rob,

This issue here is that your first line ("Select the record location from the map by either:") is unformatted from a HTML perspective. If you add tags to this line (eg <p> tags), the HTML formatting for the rest of the hint will be honored in the form and in the Map widget. Note that the hint text in the Map widget is center justified

<p>Select the record location from the map by either:</p>
<ol><li>using the GPS on your device to find your current location,</li>
<li>entering a grid reference / coordinates in the search bar, or </li>
<li>manually selecting a location on the map.</li></ol>
<p><b>Notes:</b></p>
<p>If you have selected a refuge, this has already been calculated for you.<p>Location accuracy warnings are only relevant if you have used your device's GPS location.</p>
<p>You <b>MUST</b> be signed in and have an internet connection to be able to search using OSGB grid references.</p>

Hope this helps,

Brett

View solution in original post

DataOfficer
Occasional Contributor III

Hi Brett Stokes‌,

That's perfect, thank you. 

0 Kudos