Select to view content in your preferred language

Adding a line break in the instance_name for inbox labels

1208
3
Jump to solution
07-14-2023 01:47 PM
MFazio
by
Regular Contributor

I am looking to break up my instance name so that inbox labels are more easy to read. I have tried both:
concat (${Site_ID},"\n",${Desc_})

and 

concat (${Site_ID},"<br>",${Desc_})

with no luck. The hope is to have each of the labels look like:

----------------------------------------------

Site ID:

Site Description 

-----------------------------------------------

 

Tags (1)
1 Solution

Accepted Solutions
Katie_Clark
MVP Alum

Hmm, I tested and added a <br> tag to the instance name of one of my surveys and it worked. Here's the syntax I used:

concat("<b>", "Site: ", "</b>", ${project_site}, "<b>", "<br>", " Sampling Date: ", "</b>", format-date(${sampling_date}, '%Y-%m-%d'), "<b>", " Point ID: ", "</b>", ${sampling_point})

and here's what the output looks like:

-----------------------------------------------------------

Site: Sample Site Name

Sampling Date: 2023-07-14 Point ID: K

-----------------------------------------------------------

You are actually checking the inbox within the Survey123 field app, correct? Not just the preview in Survey123 Connect?

Best,
Katie

If this answer helped you, please consider giving a kudos and/or marking as the accepted solution. Thanks!

View solution in original post

0 Kudos
3 Replies
jcarlson
MVP Esteemed Contributor

That's strange. Usually "<br>" does the trick. Try "<p>" maybe? It's HTML tags you want.

- Josh Carlson
Kendall County GIS
Katie_Clark
MVP Alum

Hmm, I tested and added a <br> tag to the instance name of one of my surveys and it worked. Here's the syntax I used:

concat("<b>", "Site: ", "</b>", ${project_site}, "<b>", "<br>", " Sampling Date: ", "</b>", format-date(${sampling_date}, '%Y-%m-%d'), "<b>", " Point ID: ", "</b>", ${sampling_point})

and here's what the output looks like:

-----------------------------------------------------------

Site: Sample Site Name

Sampling Date: 2023-07-14 Point ID: K

-----------------------------------------------------------

You are actually checking the inbox within the Survey123 field app, correct? Not just the preview in Survey123 Connect?

Best,
Katie

If this answer helped you, please consider giving a kudos and/or marking as the accepted solution. Thanks!
0 Kudos
MFazio
by
Regular Contributor

I'm not sure if the spaces made a difference, but I tried again and this ended up working as intended:

 

concat("<b>", ${Site_ID}, "</b>", "<br>" ,${Desc_})

 

Thank you both for the response!

- Mike 

0 Kudos