Questions tagged [line-break]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
18 views

Is there a native line break for Salesforce?

I'm having some text area fields that are populated via some external service via the API and also by the users who sometimes create new records, as well as changing existing ones. Via the API I can ...
0
votes
1answer
55 views

BR() not returning a line break in flows

As per Use the BR() Function in Flows and Processes Correctly (Critical Update), I am expecting BR() should return a line break. Through flow loop element, I am populating text area field. After each ...
4
votes
3answers
4k views

Is there an easy way to show a multi-line Custom Label in a Visualforce page with the line breaks working correctly?

I'm looking to display a Custom Label on a Visualforce page, however when the Custom Label has line breaks in it, they're not coming through to the Visualforce page. If I inspect the html, the line ...
0
votes
2answers
38 views

Trying to replace character in string with a line break in helper

I'm trying to replace a ; in a string with a line break to then be displayed in my component. I'm currently using the code below to do this. formatString: function(component, event, schemes) { ...
0
votes
0answers
32 views

Need help on copying values from a text area field separated by new line to two separate fields

I have a custom field Details populated by the Case's Subject and Case Description separated by a newline. In process builder, my formula to update Details field is Case.Subject & BR() & ...
3
votes
3answers
9k views

Line break on Text Area (Long) in Visualforce

i have one long text area field and i used it on my visualforce. my long text area field value is - Fees are valid only for the payment of the Grade specified in this Letter of Offer.\n- Fees ...
2
votes
1answer
58 views

Add new string value to existing value for text area(long) field with new line using LDS

I am using LDS to load the Account record. i want to add new comments with new line to existing comments for my textarea(long) field in Account record. i used \n and `\r\n' none of them are working ...
0
votes
1answer
226 views

Remove Line Breaks in OutputField from Lightning component

First time I post here, I tried to search for an existing answer but couldn't find one. I'm not a proficient developer but I'm trying to set up a lightning component that will display a specific ...
8
votes
1answer
2k views

Flow Linebreak in text field record update

My flow runs on the Contact object. There is a screen for users to update to the Contact description. I want to combine the old description and the new one, but have a line break between them. Every ...
0
votes
1answer
101 views

How to add line break between inputText Fields in panelgrid

I have the following visualforce code: <apex:page id="communitiesSelfRegPage" showHeader="true" standardStylesheets="true" controller="CommunitiesSelfRegController" title=" {!$Label.site....
8
votes
1answer
4k views

Replace Line Breaks (Multiple count as 1) in a string

Given a string with the following variations where {br} is a line break not a literal Line 1{br}Line 2 Line 1{br}{br}Line2 Line 1{br}{br}{br}Line 2{br} Basically any number of line breaks between ...
1
vote
1answer
687 views

Break tag inside rich text field in lightning

We use a Visualforce page to automatically fill a rich text field with some generated content. After that, the user is allowed to edit the content before it's displayed on a website. After our ...
1
vote
1answer
10k views

Add Line Break In Error Message

The below code builds an error message displaying the values from multiple records (typically 12). Map<String,Budget__c> budgetByIdentifier = new Map<String,Budget__c>([SELECT ...
0
votes
1answer
799 views

Line break (\n) in return statement of a method [duplicate]

I am trying to use Line breaks (\n) in return statement. But it doesn't work. \n gets printed in the return statement. I am not using any VF Page. I am trying this in my webservice class. Below is ...
0
votes
1answer
310 views

Regular Expression need to escape < br> [closed]

I'm using the following regular expression: (https?://(?i)www.|https?|www.)([A-Za-z\\d._~:/?#\\[\\]@!$&\'()*+,;=-]|%[0-9a-fA-F]{2})+[.][A-Za-z]{2,3} but for urls such as for instance: http://www....
2
votes
1answer
346 views

Linebreaks in Flows to populate body of contentNote

I have a flow that populates the content of a ContentNote record. i use a formula that combines values from various variables in the flow and concatenate it.This concatenated text is displayed in the ...
0
votes
1answer
65 views

Visual Flow - Rich Text inserting unwanted Line Breaks

In my Visualflow all Radio Button Lists, CheckBox Lists, and Multi-Select Checkbox List, give me unwanted line breaks if I convert the label to Rich Text. It's a normal VisualFlow that is not ...
2
votes
1answer
264 views

Validate if RichText field contains line breaks

I'm trying to create a validation rule that prevents users from having line breaks in a richtext field. Here's what I have: Error condition formula: REGEX(Manual_Step_Description__c,"\n") I want to ...
3
votes
1answer
2k views

How to wrap Rich Text Area in Visualforce

How do you wrap the text automatically? I have tried several approaches but none of them it works. Data type for the Description field is: Rich Text Area(131072) Visualforce page: <apex:...
0
votes
3answers
1k views

break line on a String

This is my query: String query = 'SELECT Project__c, Project__r.Testing_Submitted__c, Project__r.Project_Sub_Phase__c, Project__r.DRD_Submited__c,Protected_Application__r.DRD_Completed__c, ...
2
votes
2answers
2k views

How do I get a line break in a Visualforce page IF formula?

I've looked through various questions but still haven't found an answer. I have 5 fields that I can display on a VF pdf page and want each one on a different line, but if the IF fails, I don't want a ...
1
vote
1answer
1k views

Any solution found for word-wrap in VF PDF?

Searched nearly one day but could'nt find the solution for this. There are lot of questions regarding word-wrap is not working on pdf but none of them have answers. am just fetching the contacts ...
0
votes
1answer
561 views

Line Breaks in showing formula field in VF page

I've a formula field like this : Address__c & BR() + City__c & ',' & text(State__c) & BR() & Zip_Code__c This is showing complete mailing address, separated by line breaks using ...