Questions tagged [outputtext]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 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== '' }"&...
0
votes
2answers
15 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 ...
0
votes
0answers
32 views

ReRendering Output Panel with MHTML String Fails

I am rerendering EmailMessage HTML Bodies onto visualforce pages. For most emails this is not a problem, however for one email the rerender never completes. Research into this suggests some sort of ...
0
votes
2answers
2k 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: '...
0
votes
1answer
237 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 ...
1
vote
2answers
129 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", <...
2
votes
2answers
596 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 ...
0
votes
1answer
487 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-...
0
votes
2answers
4k 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 ...
2
votes
1answer
70 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 ...
0
votes
0answers
50 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, ...
0
votes
1answer
2k 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 ,...
2
votes
0answers
109 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 ...
3
votes
2answers
3k 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?
2
votes
1answer
361 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 ...
1
vote
2answers
1k 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 ...
3
votes
1answer
882 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....
4
votes
1answer
71 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="...
1
vote
2answers
3k 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 ...
0
votes
1answer
564 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 ...
2
votes
1answer
1k 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....
4
votes
1answer
3k 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 ...
2
votes
3answers
4k 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 ...
1
vote
1answer
4k 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> ...
2
votes
1answer
898 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....
3
votes
1answer
5k 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"/>...
15
votes
4answers
26k 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:...
2
votes
2answers
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 ...
0
votes
1answer
59 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="{...
1
vote
1answer
174 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}"/&...
1
vote
2answers
132 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();
6
votes
1answer
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 (...
1
vote
1answer
2k 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 ...
2
votes
1answer
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 ...
0
votes
1answer
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. ...
1
vote
0answers
28 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 ...
2
votes
2answers
568 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 ...
3
votes
1answer
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 ...
1
vote
2answers
1k 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 ...
3
votes
3answers
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 ...
38
votes
3answers
58k 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 ...
5
votes
2answers
16k views

Using an inline IF statement to format a field value in VisualForce page

I'm trying to do some conditional formatting for the Opportunity Amount field on a VisualForce page that just displays the currently set amount. There is a chance that the amount can be negative (due ...
1
vote
1answer
249 views

how can I get a double number returned from a SOQL query through the rest API into a text field?

I have a SOQL query that pulls back 3 records with data from 5 fields into my NSDictionary. One of the fields in Salesforce is numeric (currency) and is returned in the query as a double. When I ...
3
votes
3answers
4k views

limit view of a long text field on VF Page

I have an embedded VF Page that has a few output fields that are long text fields. Generally users don't put that much in the notes but when they do it messes the rows up because the words get ...
5
votes
1answer
869 views

Avoid stripping of whitespace around outputText elements

I find it annoying that in VisualForce if you do something like this: Campaign name is <apex:outputText value="{!Campaign.Name}" /> You get output like this: Campaign name isCampaign 1 The ...
4
votes
1answer
2k views

Number format string being displayed on Visualforce page

Our application Ring My Bell displays a message using a public double property in the controller which is displayed in a message using <apex:outputText>: <apex:outputText value="{!person} ...