Questions tagged [outputtext]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

How can I use substitute in combination with if condition

Our Salesrep can write some text in a textbox field which is related to a campaign. This field should print on the letter. The Salesrep can use some words which are substitute in the process. If the ...
user avatar
  • 3
0 votes
0 answers
22 views

Using escape=false with output text isn't allowing scroll

I have a list of html strings I want to render with html formatting, so I put it in a string list and implemented on the vfp with outputtext and escape = false. If the list is long enough without the ...
user avatar
0 votes
0 answers
84 views

apex:OutputText - Format Currency from CurrencyIsoCode on Record, not User Currency?

Based on other answers here and elsewhere online, I formatted our outputText for Currency using the following: <apex:outputText value="{0, number, currency}"> <apex:param value=&...
user avatar
1 vote
1 answer
65 views

Apex: Constructing URL with image

I have an custom object called Events__c, which returns a image banner link stored in a URL field. I'm using this data to display the banner in a Visualforce page during a registration window, based ...
user avatar
1 vote
1 answer
203 views

VF page render as pdf not working properly

I am trying to display some HTML(stored as HTML text in rich text field) in to vf page via output text tag. This HTML text has unordered list inside an unordered list(like a nested unordered list). It ...
user avatar
  • 91
0 votes
0 answers
1k views

Salesforce removing line breaks when importing data from CSV

We're currently busy with a migration of data from our old system to our brand new Salesforce system. As part of this migration, we're migrating data fields that contain flat text with line breaks, ...
user avatar
4 votes
1 answer
1k views

How to output [MMMM dd yyyy hh:mm AM/PM] using Text formula on a DateTime field?

Good day StackExchange! High level, my goal is to take a date/time value and use a formula to display it as a customer friendly long date (MMMM-DD,YYYY at HH:MM AM/PM) string output for email ...
user avatar
0 votes
1 answer
131 views

Outputtext rendered conditional check not working with < or >

This is my VF outputtext which works fine: <apex:repeat value="{!port.hList}" var="per"> <tr> <td> <apex:outputText value="{0, Number, #,###,###.00}" rendered="{!...
user avatar
  • 1,377
2 votes
1 answer
273 views

Converting Date/Time to CST in visualforce on an email template

I am doing some freelance work for a client and they are adamant about translating a date/time a user puts in back to CST (Central Standard Time) for one of the fields displaying in the email. This is ...
user avatar
1 vote
0 answers
415 views

Formatting currencies in different locales (DE, EN, ES, FR & PT) in quote

My company is dealing with customers all around the world. We use 5 languages (English being the main): DE, EN, ES, FR & PT. We wanted to send the quotes with localized amounts to our customers ...
user avatar
0 votes
1 answer
605 views

apex:outputField not formatting phone numbers in pdf

Is there any reason why the apex:outputField in a visualforce page rendered as a PDF would not be formatting the phone numbers? <apex:outputPanel rendered="{! generalContact.Phone_Field__c== '' }"&...
user avatar
  • 1,503
0 votes
2 answers
512 views

Completely remove <apex:outputText> string if the value is blank

I'm using this code now: <apex:outputText rendered="{!NOT(ISBLANK(Description__c))}" value="{!Description__c}"/> But sthis string is between another strings, and when I use this code, I'm ...
user avatar
2 votes
3 answers
4k views

Formating the new time field in Visualforce

I am trying to format the new Time field type in Visualforce but with no success. I'm trying to use the same method as i use for date formatting but it does not compile my code with the error: '...
user avatar
0 votes
1 answer
333 views

Display the value of a string which looks like Date Time- JSON parameter

I have a JSON string that I get in a response. Example: {"Place":[{"datetime":"2011-03-11 04:46:23","depth":24.4,"lng":142.369,"lat":38.322}]} I get the JSON values in the controller and put it in a ...
user avatar
  • 4,521
1 vote
2 answers
177 views

How to add complex conditional code in visualforce - Multi-Currency

I have the following code in visualforce: <apex:variable value="{!Opportunity.Amount-Opportunity.Descuento_Autorizado__c}" var="descontado"/> {!IF(Opportunity.CurrencyIsoCode=="USD", <...
user avatar
2 votes
2 answers
1k views

Change TimeZone of CreatedDate

I am having some trouble finding detailed information on the 'z' value in the <apex:outputText value="{0,time, hh:mm a z}"> I have to display the timezone as PST and the z is only displaying ...
user avatar
  • 3,179
0 votes
1 answer
871 views

Format date using SLDS style class

I don't want my date and time to show up GMT on a custom visualforce page. I have a date/time field I'm pulling in from the opportunity here is my VFP code: <div class="slds-truncate slds-text-...
user avatar
0 votes
2 answers
8k views

Outputfield font size change

I am binding product description in outputfield but I can't able to change the font size.I am having description type as rich text area to enter bullet points description. If I use Outputtext I lam ...
user avatar
2 votes
1 answer
194 views

How to change the output format in the inline if statement of outputtext?

There are some codes like below: <apex:outputText value="{!IF(item.FinishedDate__c == null, 'Not Finished', item.FinishedDate__c)}"/> The item.FinishedDate__c is defined as Date, and I want ...
user avatar
  • 23
0 votes
0 answers
55 views

Need to output text from extension

is it possible to output text like this? Controller: public string ywc1{get;set;} public string ywc2{get;set;} public string ywc3{get;set;} for (Bank_Application__c data: [SELECT Experian1__c, ...
user avatar
0 votes
1 answer
3k views

How to display formula field in VF?

Below is the formula that i have created on Formula text field: if( ISBLANK(Key_Account_Relation__c ),"No Report", HYPERLINK("/00O8E000000P88P?pv0="& Key_Account_Relation__r.AccountGroup__r.Name ,...
user avatar
2 votes
0 answers
131 views

Is it not possible to use Dynamic binding of sObject fields in a Lightning Component? [duplicate]

I'm trying to loop a list of sObject fields and displaying the fields as column in a table. In Visualforce, we could bind an sObject field like value="{!Contact[fieldName]}". But I'm unable to make ...
user avatar
  • 5,606
3 votes
2 answers
7k views

Apex outputtext value attribute

This is a generic question apex:outputText value="{**0**,date,MM'/'dd'/'yyyy}" What I wanted to know is what is the 0 in value used for?
user avatar
  • 371
2 votes
1 answer
676 views

How to get default field formatting with outputText?

So I know I can just render a field with its default formatting using outputField: <apex:outputField value="{!MyObject__c.MyDate__c}" /> If I try to render the same field using outputText I ...
user avatar
  • 1,966
1 vote
2 answers
2k views

Double click on apex:outputtext and show inputfield how can i implement this

VisualForce Page: <apex:page standardController="Account" extensions="InlineEditingHelper"> <apex:form> <apex:pageBlock title= "outputcomponents"> <apex:outputPanel ...
user avatar
3 votes
1 answer
1k views

InlineEdit for OutputField

I have written this code. I am trying to make the outputText inline editable. <apex:outputText value="{0,date,MM'/'dd'/'yyyy}" rendered="{!!(pA.AcceptedDate__c==NUll&&pA....
user avatar
  • 73
4 votes
1 answer
80 views

Display the data if "quantity" is not = 0. Using multi map

<apex:repeat value="{!prod_quantity_1}" var="key"> <apex:repeat value="{!prod_quantity_1[key]}" var="innerKey"> <apex:repeat value="{!prod_quantity_1[key][innerKey]}" var="...
user avatar
1 vote
2 answers
5k views

How to hide output text using rendered?

I have a VF page with output text that I want to show based on the boolean blShowIt in the controller. I have 2 buttons on the form, one to show the text the other to hide it. And I set blShowIt to ...
user avatar
  • 13
0 votes
1 answer
599 views

apex:outputText in Bootstrap div not working

I have the following code, which is a bootstrap modal. I am trying to use apex:outputText within it, but it seems like the outputText is just getting loaded when the page loads (the value inside needs ...
user avatar
  • 159
2 votes
1 answer
2k views

apex:outputText remove LEFT

is there any possibility to use LEFT to remove first 5 characters of string? My records of UoM always have a first 5 chars as code, which I do not want o print out. <td> {!line....
user avatar
  • 441
4 votes
1 answer
4k views

outputText number formating with space a thousand separator

How do I format a number in an outputText element so that it uses spaces as a separator between thousands? What I currently have is an outputText element which formats number using comma as a ...
user avatar
2 votes
3 answers
5k views

how to number rows in a data table and how to get data from textbox

I have been searching through the net to see if I can figure out how to number rows in visualforce but I cannot find a way that will automatically increment when a row is added. I also cannot find out ...
user avatar
1 vote
1 answer
5k views

Adding bold style to outputText seems not to work

I'm using a custom table that replicates the design of a pageblockTable. Using th will output the text in a bold style. Code Snippet: <table id="pageblockTable"> <thead> <tr> ...
user avatar
  • 511
2 votes
1 answer
1k views

create attachment with text and images

there is a requirement to show text along with image inside a salesfore Attchment body. currently im using Attachment record = new Attachment(ParentId = call.Id, Body = EncodingUtil.base64Decode(call....
user avatar
  • 2,900
3 votes
1 answer
7k views

Escape = False On OutputText Not Rendering HTML In RichText

I am trying to render some HTML stored within a custom sObject's a richText field. I am using an outputText field as follows: <apex:outputText value="{!Information.Content__c}" escape="false"/>...
user avatar
15 votes
4 answers
39k views

Apex:OutputText to Currency Format from String Wrapper

is there a way to pass a string to the <apex:outputText> so that it can be formatted as a currency or percent value? Here's what I have inside a column of my visual force table: <apex:...
user avatar
  • 303
2 votes
2 answers
2k views

Is it possible to exclude fields from inline editing?

With visualforce, I'm using <apex:inlineEditSupport /> inside e.g. <apex:pageBlockTable> quite often. It makes all outputFields editable. Fine. Now, is there a way to exclude some fields ...
user avatar
  • 33.6k
0 votes
1 answer
63 views

Get rid of default formatting for outputText

I am trying to print out a sum of 2 Integer variables using outputText, however it appears with a different format than normal text. How can I get rid of this formatting? <apex:outputText value="{...
user avatar
  • 1,235
1 vote
1 answer
181 views

Format custom textarea field for custom object

I have a custom object that has a custom field called Notes. The field has the Text Area datatype but when I use it in an outputText as such: <apex:outputText value="{!selectedDetail.Notes__c}"/&...
user avatar
  • 1,235
1 vote
2 answers
202 views

Is it possible to write an interactive Apex Console Script?

Is it possible to write an Apex script which will ask the user for input? Something like: System.out.print("Enter your name: "); String name = input.nextLine();
user avatar
6 votes
1 answer
7k views

visualforce IF syntax

So I need to use an inline if statement in my visualforce page to decide whether or not I need to render an outputText. However I keep hitting a syntax error so I am hoping someone here will catch my (...
user avatar
  • 1,235
1 vote
1 answer
3k views

outputText using a function with param

So I am trying to iterate through a list of custom objects and print out the information that I need. The issue is that with this object I cannot guarantee where the information I need is so I made a ...
user avatar
  • 1,235
2 votes
1 answer
2k views

apex:outputtext automatically creates a table td element. How to prevent it?

I have built an html table inside apex:pageBlockSection and trying to display a number field in currency format in one of the cell (i.e., in a table td). Since i need to format the number to currency ...
user avatar
  • 6,634
0 votes
1 answer
3k views

labels not rendered when <apex:pageBlockSection> removed

To save some real estate i just removed pageBlockSection and instead of it i used plain table tag. But the issue is the label defined in the apex:outputText tag has not rendered but the value is. ...
user avatar
  • 6,634
1 vote
0 answers
29 views

On Site.Com, how do you format output to show only whole numbers or integers?

I've tried using the function that works in VisualForce --- {!FLOOR(myvar)} -- but it doesn't work in Site.com. Any idea how to format output variables in Site.com? I need to do a few in currency ...
user avatar
2 votes
2 answers
637 views

Formatting Date in Visualforce - Complex version

I have this code <font face="Arial">Invoice Date: <apex:repeat value="{!Opportunity.Invoices__r}" var="line2"> {!line2.Invoice_Date__c} </apex:repeat> </font> which ...
user avatar
3 votes
1 answer
2k views

Currency conversion for an Outputtext

I am reading two currency fields from a custom object, displaying them and their difference on the vf page. I am using outputfield to display my currency fields, so if the locale currency of the user ...
user avatar
1 vote
2 answers
2k views

Show the message in the same page with out going to the next page?

I am getting the list from the controller : <apex:outputPanel rendered="{!NOT(ISBLANK(quo))}"> <apex:outputText rendered="{!quo.size>999 }" value="Refine search Records ...
user avatar
  • 1,412
3 votes
3 answers
1k views

How to display content of remote text file in Visualforce page

I am trying to display the contents of a remote text file on a Visualforce Page. I have implemented a class called MyApexClass containing a getTextFileContentAsString method that returns the content ...
user avatar
  • 131
41 votes
3 answers
77k views

Visualforce Date formatting

I need this date format in a visualforce page: "December 14, 2013". I can't seem to find the format options for visualforce. I read that it's the same as the java messageformat class options, but I ...
user avatar
  • 2,061