Same map, same label, same expression, works fine in new Map Viewer, not in Classic Viewer. I don't even see it in the list of functions.
Solved! Go to Solution.
There currently isn't a print component in the latest Dashboard release and if you are using Dashboard Classic that will also use 3.x and will not support multiline labels.
Works fine for me. I find Classic Map Viewer easier to use.
TextFormatting.NewLine is under constants, not functions.
Check it:
I think it used to work, but it broke when I did this: the user wants to print from the dashboard. Told them dashboards don't print. They say make it print, so I made a WAB with the Print widget and embedded both the dashboard and the app in an Experience Builder. I thik that broke it. No biggie because I couldn't figure out how to transfer the selection in the dashboard map to the one in the webapp. I was going to make them search.
This is not supported in MVC or other 3.x JSAPI based web apps.
OK, but these guys want to print what they see in the dashboard, at least the map. Is there a way to accomplish that? I found that custom widget somebody built, but it requires developers EB. Is it free? Should I go that route?
There currently isn't a print component in the latest Dashboard release and if you are using Dashboard Classic that will also use 3.x and will not support multiline labels.
OK. I think I'll go with the standalone WAB with Print widget and add a custom search to allow replication of the selection in the dashboard, but in a map with labels off displaying the popup. Either that or take a screen capture. I have to look into the new dashboard, haven't had the chance. I did notice you can make one in Experience Builder.
I must be inadvertently using the new ones because the labels do work: