You need to sign in to do that
Don't have an account?
Raj R.
How to display Account and Opportunities fields as read only on VisualForce Page?
Hi,
A profile was created that was designed to provide read only access to Accounts and Opportunities.
I wanted to make a custom VisualForce (VF) page that displays Account and Opportunity fields that are references in ready only. How can I do this with a VF page?
For example,
I wanted to display the following:
Account
A profile was created that was designed to provide read only access to Accounts and Opportunities.
I wanted to make a custom VisualForce (VF) page that displays Account and Opportunity fields that are references in ready only. How can I do this with a VF page?
For example,
I wanted to display the following:
Account
- Account Owner (lookup/reference field) as read only so it is not a clickable link
- Opportunity Owner (lookup/reference field) as read only so it is not a clickable link
All Answers
You can just put Owner.Name as text in html.
Hi Denis,
How would the VF page code for that?
The following code below still displays the Owner as a clickable link.
<apex:outputText value="{!Account.Owner}"></apex:outputText>
Is this what you are referring to?
Sorry, I am still new to SOQL. If not, how would I be able to query the name of the Account owner?
Thanks Denis!