Select to view content in your preferred language

Adding a line break in the instance_name for inbox labels

583
3
Jump to solution
07-14-2023 01:47 PM
MFazio
by
New Contributor III

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 Regular Contributor

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


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek

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 Regular Contributor

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


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek
0 Kudos
MFazio
by
New Contributor III

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