You need to sign in to do that
Don't have an account?
Jonathan Thornton 4
Carriage Returns not showing up when displayed
Hello everyone,
I'm simply trying to display an address formatted as typed (including carriage returns) into Salesforce on a visualforce page e.g.
As typed:
Street Field: Salesforce Tower
415 Mission Street
City: San Francisco
State: CA
My requirement is to have it display just like you would expect with the carriage return as typed:
Salesforce Tower
415 Mission Street
San Fracisco, CA
Instead I get:
Salesforce Tower 415 Mission Street
San Francisco, CA
Here is the line of code:
Please, any help is greatly appreciated! This should be so simple... Thanks!!
Jonathan
I'm simply trying to display an address formatted as typed (including carriage returns) into Salesforce on a visualforce page e.g.
As typed:
Street Field: Salesforce Tower
415 Mission Street
City: San Francisco
State: CA
My requirement is to have it display just like you would expect with the carriage return as typed:
Salesforce Tower
415 Mission Street
San Fracisco, CA
Instead I get:
Salesforce Tower 415 Mission Street
San Francisco, CA
Here is the line of code:
<apex:outputPanel layout="inline" styleclass="block__number" rendered="{!OR(cinfo.RecordType.Name=='Address',cinfo.RecordType.Name=='Phone Number')}"> <apex:outputText escape="false" value="{!IF(cinfo.RecordType.Name=='Address',cinfo.Address__c,cinfo.Phone__c)}"/> </apex:outputPanel>
Please, any help is greatly appreciated! This should be so simple... Thanks!!
Jonathan
Did you try: <apex:outputField> instead of <apex:outputText> ?
Alain
Thank you for your response Alain.
Cheers!