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
0answers
33 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 ...
0
votes
0answers
30 views

Unable to extract current value entered in an Outputfield (InlineEditSupport)

<apex:pageBlockTable value="{!Records}" var="record" id="thePageBlockTable" styleclass="slds-table slds-table_cell-buffer slds-table_bordered" > ...
0
votes
1answer
648 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 ...
0
votes
1answer
414 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== '' }"&...
2
votes
3answers
4k 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 ...
0
votes
1answer
308 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 ...
3
votes
1answer
1k 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 ...
1
vote
1answer
4k 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 ...
1
vote
3answers
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"...
0
votes
2answers
7k 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 ...
1
vote
1answer
2k 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"> &...
1
vote
1answer
469 views

How to use list variable in pageblock table without using var attribute

i have a VF page , contains pageblock table(wrapper) , if the data is available for the filed in column then will show output field , if not will show input field , because user can enter data , then ...
0
votes
2answers
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 ...
1
vote
0answers
604 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 ...
6
votes
3answers
1k 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 ...
-1
votes
1answer
145 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 ,...
1
vote
3answers
582 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:...
2
votes
1answer
632 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 ...
2
votes
1answer
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:...
1
vote
0answers
184 views

How to limit characters in richtext area outputField

I have a requirement in which I am having a richtext outputField component at page. I need to limit number of characters displayed in page to say 300. So for this I used <apex:outputText value="{!...
3
votes
2answers
495 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 ...
0
votes
2answers
777 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 }...
1
vote
1answer
115 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 ...
1
vote
0answers
107 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....
3
votes
1answer
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....
2
votes
2answers
2k 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 ...
-1
votes
1answer
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{!...
0
votes
2answers
214 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 ...
1
vote
0answers
634 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 ...
0
votes
2answers
584 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 ...
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 ...
6
votes
1answer
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. ...