function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Janno RipJanno Rip 

linebreak visualforce title

Hello developers,

I have a visualforce page that includes a map with infowindows. Hovering over the marker I display (as for now) only the title.

What I want to achieve is to display also some more fields. To make it readable I want to use linebreaks (or sth else?). This is where I'm stuck.

<apex:mapMarker title="{!war.Name} {!war.ShippingStreet}">

User-added imageI want title and street to be displayed like this:

Title
Street
...

Is this possible? Every´thing I try gets display as plain text.

Thanks in Advance

Best Answer chosen by Janno Rip
SwethaSwetha (Salesforce Developers) 
HI Janno,

I believe this functionality is not supported in the title field even using JS functionality with something like

<script>
document.title = "My Custom Title";
</script>

Please consider submitting an idea on salesforce Idea exchange so that the product team can implement it in coming releases based on the number of upvotes.

Link:https://success.salesforce.com/ideasearch
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful.

Thanks