Skip to main content

Questions tagged [outputfield]

A read-only display of a label and value for a field on a Salesforce object.

Filter by
Sorted by
Tagged with
0 votes
0 answers
546 views

apex:outputField not aligning text to the right

I have a visualforce email template, and I have a field with rich text where the text is Right aligned. I need to print it in the email attachment as pdf but it's always shown as left aligned, i tried ...
Brian23Gt's user avatar
  • 119
1 vote
1 answer
6k views

Formatting of lightning-output-field in grid with LWC

I'm trying to display 2 columns of data in a LWC using . They are displaying ok (ideally I would want the labels not wrapping) but when I resize the browser window, some of the columns can jump to ...
Stick's user avatar
  • 13
0 votes
1 answer
30 views

Unknown 'VisualforceArrayList.Receiver_of_commodity__r' property

I'm getting this error: Unknown 'VisualforceArrayList.Receiver_of_commodity__r' property on vfp. I want to show the contents of this variable inside the vfp, and i am using a custom controller. I ...
Souza's user avatar
  • 305
0 votes
1 answer
2k views

Showing related object fields in a custom aura component

First time with Aura components, having a hard time understanding them. I'm trying to write a simple component that shows some related object fields. I know there's a standard one provided by ...
robruf's user avatar
  • 382
0 votes
0 answers
201 views

How to get fields without access in LWC?

I have a set of field names that I am getting from a FieldSet. And some fields are inaccessible (I closed access for them). But I have to get these fields and output them to the form. How can i do ...
Valentin Romanov's user avatar
0 votes
2 answers
2k 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 ...
Joachim's user avatar
  • 13
0 votes
1 answer
1k 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== '' }"&...
JRiffe's user avatar
  • 1,673
2 votes
3 answers
10k views

Need to change OutputField lable in Lightning Component [closed]

in Lightning component, we are displyaing date for custom object using OutputField Ex: <lightning:outputField fieldName="ReceivedSerialNumber__c"/> API label for the above field is ...
Kiran's user avatar
  • 23
0 votes
1 answer
717 views

Indent is not working in visualforce page

I'm having a lightning out app. In that I'm displaying a lightning:inputRichText and a lighning:button. On clicking 'save' button, I'm displaying the value entered in that field to the inline vf page ...
uma451's user avatar
  • 819
3 votes
1 answer
2k views

Winter '19: lightning:outputField does not render anything

I am noticing strange behaviour in my lightning community in components that utilize <lightning:outputField/>. Basically, the DOM is not rendering any field data, although inspecting the area ...
alecln's user avatar
  • 361
1 vote
1 answer
5k views

Styling lightning:outputField checkbox

I am using lightning:recordViewForm to display case data; And inside the lightning:recordViewForm, i use lightning:outputField to display fields data, like this: <lightning:recordViewForm ...
abdel's user avatar
  • 147
1 vote
3 answers
1k views

force:inputField and force:ouputField disappear after rerendering

Basically I have code like the following in my component: Component: <aura:if isTrue="{!v.isEditMode}"> <force:inputField value="{!v.contact.LastName}"/> <aura:set attribute="else"...
Yury Bondarau's user avatar
0 votes
2 answers
9k 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 ...
Sankar Ganesh's user avatar
1 vote
1 answer
3k views

Visualforce - Display all records on VF page from custom object

So I want to display all 'sites' from the Site custom object on a Visualforce page called Launchpad. <apex:pageBlock> <apex:pageBlockTable value="{!Site__c}" var="site"> &...
KK1's user avatar
  • 25
0 votes
2 answers
2k views

show checkbox before every contact using wrapper class

I'm trying to fetch the contact record and showing on page using its showing error Unknown property EditContact_controller.wrapperClass.conList Which thing is unknown. here is my controller ...
cloudZigZag's user avatar
  • 1,376
1 vote
0 answers
636 views

Lightning Components - CSS classes not being updated on child components

I'm trying to create a simple section on a lightning component which will show either a force:inputfield or a force:outputfield depending on the "mode" attribute of the component. If the mode ...
Bigears's user avatar
  • 1,131
6 votes
3 answers
2k views

Make Name field turn into a link with outputField

I'm looping through a few fields in a fieldset and displaying them with outputField. I would like the Object__c.Name field to hyperlink to the record. Is it possible to do this? The only solutions I ...
Jacob Raccuia's user avatar
-1 votes
1 answer
177 views

How to get the id of the outputfield texbox clicked by the user which is created inside <apex:repeat>?

I want the box id value when the user clicks on the output field. Here box is a custom object with two fields a checkbox and a textbox . when the user clicks at the output field in the repeat element ,...
Shiva Rv's user avatar
1 vote
3 answers
684 views

How to show a relatedlist using output text field

In my below code, I have an obj1 and obj2 , which is child of Obj1. I am using a visualforce page like below with obj1__c as a standard controller and rendering this page as PDF. I use <apex:...
SfdcBat's user avatar
  • 4,821
2 votes
1 answer
774 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 ...
Semmel's user avatar
  • 2,507
2 votes
1 answer
1k views

Populate Day value in apex:output using javascript

I am trying to populate day of date in a list of SObject using JavaScript. I have written logic for getting day it works fine. Now I have to set Day. Page-block table Day column code is <apex:...
SFDC shaikh's user avatar
3 votes
2 answers
506 views

Using <apex:outputField> incorrectly

Firstly sorry I am a total apex and VF noob. I created a controller that makes a SOQL query and I would like it displayed on a VF page. Controller saves fine but the VF page complains that I'm using ...
neo2049's user avatar
  • 410
0 votes
2 answers
870 views

Displaying non-Object variables on Visual force page

I know this is the format for displaying outputs on to VF pages <apex:pageBlock title="CustomObject"> <apex:pageBlockSection> <apex:outputField value="{! CustomObject.var1 }...
goSF's user avatar
  • 395
1 vote
1 answer
177 views

How to handle multiple input/output tags with the same fields in VisualForce

I have created a VisualForce page that is basically a wall of inputFields. I had a requirement to make all of the inputFields into outputFields when a certain event happens (the event happens, all ...
Sean McMickle's user avatar
1 vote
0 answers
128 views

Stop from entering a null value in apex inline edit

I have the following code <apex:outputField value="{!pubAut.AcceptedDate__c}"> <apex:inlineEditSupport event="ondblclick" rendered="{!(pubAut.AcceptedDate__c!=NUll&&pubAut....
Rimii's user avatar
  • 31
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....
Anamika's user avatar
  • 73
2 votes
2 answers
3k views

Change color of apex:outputfield in a vfp for a lookup field in a fieldset

I'm displaying a fieldset in the Community. The fieldset contains text, checkbox and lookup fields. So, I'm using the component to display the values from different data types. The issue is that the ...
Seesh's user avatar
  • 754
-1 votes
1 answer
1k views

Outputfield value formula

can I put into a outputfield a formula like below? IF Today - LastModifiedDate > 60 , RED , IF Today - LastModifiedDate > 30 , YELLOW, ELSE GREEN Thanks, Sascha <apex:outputField value="{IF{!...
peXeq's user avatar
  • 471
0 votes
2 answers
307 views

How to use outputField in a query string

I am trying to take the value of an outputfield in a query string but not sure how. What I have works for an inputField but not outputField. Any ideas? VisualForce Page <apex:page ...
Micheal McGowan's user avatar
1 vote
0 answers
698 views

apex:outputField of a lookup relationship field - is there a way to open in new tab

We are using apex:outputField for some lookup relationship fields and enjoys the benefits of Salesforce supported pop up. But the link will open in the current tab. Is there an easy way to set it ...
Lance Shi's user avatar
  • 13k
0 votes
2 answers
679 views

Auto Save Picklist value onchange

I have an apex page where there is only one picklist field whose value change is allowed by User. Now I don't need a Save button to make the change reflect in system. Instead I need that anytime User ...
Testing_SFDC's user avatar
  • 2,950
1 vote
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 ...
Uwe Heim's user avatar
  • 28.4k
6 votes
1 answer
2k views

outputField, long textarea field and unwanted spaces

I am having trouble with apex:outputField and a long textarea field. Salesforce appears to be inserting extra spaces on lines after BR tags after the page is rerendered following an actionFunction. ...
David Cheng's user avatar
  • 7,155