Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [read-only]

The tag has no usage guidance.

1
vote
0answers
24 views

Is it possible to set cases as “read only” for all users except the owner while the case is open?

Basically, we only want the case to be able to be edited by the case owner so that multiple users aren't stepping on each other's toes.
4
votes
2answers
96 views

Specify read only fields for lightning:recordForm

On the Case object, I have a lightning component that displays only the fields of interest depending on the Status of the case. I have a separate Change_Status_To__c dependent picklist that actually ...
0
votes
2answers
29 views

Use trigger to prevent the System Administrator from editing a field, but still allow Apex code to edit it

My goal: to have a field on Account that is read-only for everyone (including System Administrator) but the field can still be edited by Apex code. For example, when an Opportunity is closed as won, ...
0
votes
0answers
19 views

How to get the read only status of a field on a page layout from the API?

I'm using net.describeLayout from react-native-force to get the fields on the page layouts. However the problem is that it doesn't seem that the 'read-only' property from the page layout gets returned ...
0
votes
1answer
45 views

How to create a 100% Read-Only profile in Salesforce (including 'Salesforce objects' as shown in DataLoader)?

Please hear me out completely. I am trying to create a profile where user can read data (= export) from Data Loader, but NOT insert/edit/delete ANYTHING back through it. So I created a profile with ...
0
votes
0answers
10 views

How can i put Read only once i save child object record Row from related list of parent object on visualforce page

I want to put read only once i save opportunity record dynamically from a related list of Account object on visualforce page. I have created a VF page in which I have used page block table. And when ...
0
votes
2answers
37 views

create record with one field but that field should be read only while doing edit

I want to create the record with one field but that field should be read only in edit mode (using default create and edit layout only). I just want to show that the field read-only on the page layout ...
1
vote
1answer
161 views

Issues with List API in Read Only mode VF page

Currently we are using a custom list view Visual Force page button for mass actions to export data to excel sheet in salesforce classic. Objects and relations: Static List (Custom object with Master ...
4
votes
0answers
82 views

API request/response codes when site is in read-only maintenance mode?

I checked out Read-Only Mode Overview but I'm still unsure of how our API will respond, particularly the response code. Will POST/PUT requests automatically return a 503 service unavailable or will ...
1
vote
2answers
166 views

How to mark a field as readonly when we clone a record?

I want to mark a single field as read only when I clone a record. I am not able to find which page layout is in action when we clone a record
3
votes
1answer
83 views

@ReadOnly won't work when using Aggregate SOQL

I've created this function with @ReadOnly in a Visualforce that is Working fine (1.000.000 records limit): @readonly webservice static List<BI_BR_Atendimento_Comercial_e_Carteira__c> ...
1
vote
0answers
427 views

lightning:combobox readonly atrribute is not working

According to the lightning:combobox documentation readonly should be set to false, but in the markup it renders like this: <input type="text" role="textbox" ... readonly="true" class="slds-input"&...
0
votes
2answers
523 views

Make an inputfield readonly depending on a controller boolean variable

I have an inputfield in an apex page In my apex class there is a boolean variable depending on which this inputfield should be readonly or readwrite. I have tried using rendered. However that is not ...
1
vote
2answers
1k views

Lightning: How to make related records read-only on page layouts?

I have added a Contact lookup to Account, and I am displaying it on the Account layout via the Related Record component. But I don't want to define a Create Action for it. In other words I want the ...
0
votes
1answer
97 views

Edit read-only Account fields without a single line of apex or VF page code

I have a custom User Profile that has read-only access to Account fields, but I would like to make a custom button on Account detail page, that allows these Users specifically edit address fields (...
0
votes
1answer
39 views

Making previous records read only when a new record is created

I have a related list sitting on my cases called Escalation Tracker. Each time a new Escalation Tracker record is created, I want to make any previous Escalations read only. Idea is that there ...
0
votes
0answers
652 views

Lookup field not accessible with 'Read' permission

We are using angular to display UI and Salesforce is being used to maintain database. We have a REST API class created which has the url Mapping. This class is used to find the records. We are using '...
0
votes
1answer
335 views

How to make accounts read-only / locked?

It's a long story, but we have a group of account in SF that we'd like to make read-only. Ideally, these records would... Remain accessible to the same people they were before No longer be editable ...
3
votes
0answers
417 views

ReadOnly/Formula Field on edit page - Lightning

I have a question about read-only/formula fields on the edit page in Lightning. Previously the fields of Read-Only/Formula were not available on the edit page, however in Spring'16 they have included ...
0
votes
1answer
822 views

make a field read only

I have a Field on account called Isactive__c which is checkbox type and i want when ever checkbox is true Account number field (standrad field) becomes read only . If there is existing value then it ...
1
vote
0answers
949 views

How to make Case Status read-only in Communities?

We have implemented Communities portal to handle customer issues however we don't want users to edit the Case Status (should only be able to create and close cases -similar to SF Partner Support). We ...
2
votes
2answers
128 views

Record is Read Only on After Insert Method

I wrote a method that works when it is before insert in my trigger handler. A problem I encountered is that the after insert method that already existed failed to run. I cannot figure out why it does ...
3
votes
1answer
77 views

Why is Field Level Security at the object-level presented as “Visible / Read-only” instead of “read / edit”?

If you access FLS settings for a given profile, it lists all the "edit" and "read" permissions for all fields in any object. If accessing the FLS settings from the object by clicking the "Field Level ...
0
votes
1answer
688 views

Custom field as made Read only via Field level security and same Custom field as Required in Page layout

A custom field is made Read only from the Field level security and Required from Page layout. I can see the Field as Read Only for the User. Why it is happening? Is it because the Field level security ...
1
vote
1answer
856 views

How does Read-Only field level security affects Apex and Workflows

Let's say I have a Profile in the system which has a particular Field of an Object set as Read-Only. How does this affect my Apex code and Workflows if they are executed by a User with this Profile? ...
2
votes
1answer
2k views

System.FinalException: Collection is read-only - Apex Class

I have the following code - public PageReference Search() { if(usr.Name != null) { con = new ApexPages.StandardSetController(Database.getQueryLocator([select Id , name , email , phone,...
0
votes
1answer
65 views

Custom button is not update field for non admin user

I've a object, custom button and two check box field on it. The custom button which is updating the check box field to true. from custom button java script code i'm calling apex class, after ...
1
vote
0answers
284 views

field should be editable from apex. how?

I've a field read only from field accessibility for a profile. when i try to check that field from apex it will not editable. i want this field should be editable by apex and not manually. my apex ...
0
votes
3answers
2k views

How to make field read only for User and Editable by Apex for Profile

I have an obj1 and field on it field1 and one profile Billing User. When I click a Custom Button on obj1, it will check the field1 to true for all the profile. However, I want field1 such that it ...
0
votes
2answers
2k views

How to make field read only from page layout for particualr User

I've one object obj1 and field on that object field1 and one profile Billing User. one Custom Button on obj1. when click on button. it will check the field1 to true for all the profile. But i want ...
-1
votes
1answer
21 views

Prevent users from editing old contacts [closed]

In our contacts database we have a checkbox (inactive). When the inactive checkbox is ticked, I don't want the users to make any changes to that record. How would I best achieve that?
0
votes
1answer
600 views

Problem with Opportunity Product Trigger that is supposed to fire on create (and used to) but now only works on edit

I created a trigger that on creation of an OpportunitlyLineItem that looks at the number of OpportunityLineItemSchedule IDs and sets a Duration field (on OpportunityLineItem as the size of the list. ...
1
vote
1answer
3k views

How to make <apex:inputText> field conditionally read-only without Javascript

I would like an input to be conditionally read-only, but I cannot find a way to make a boolean HTML attribute like html-readonly conditional within VisualForce. I am avoiding Javascript to remove the ...
2
votes
1answer
33 views

Update two records of one type when a single record is triggered

I have two opportunities. When I update a single opportunity, based on that I have to pull one more opportunity based on some criteria and update both of them. But as I'm updating through trigger, I'm ...
1
vote
1answer
93 views

Reading large number of records in REST service

This is a apex class for a REST service fro inserting multiple records into a custom salesforce object- I am getting a System.LimitException: Too many query rows: 50001 error because my org data is ...
2
votes
1answer
237 views

InvocableMethod read only

I'm writing my first plugin for use with process builder. I read the docs, I've seen a few code examples and I don't see what I'm doing wrong. The flow is defined on update of my custom SObject. I ...
1
vote
2answers
19 views

Any ideas on a workaround for a formula custom field that needs to be edited by system administrator?

I want to create a custom field on the opportunity level 'Sale Made By'. This should be automatically generated as the user (salesperson) that converted the lead to account. However, what adds ...
0
votes
1answer
512 views

Read-only field - Label visible in edit mode

I had created a custom field on one of the objects and its type is selected as currency. In the field level security i had made is as ready only for all the profiles. When i create a opportunity for ...
0
votes
4answers
587 views

How to make apex:details read-only?

I've got very simple page: <apex:page standardController="Employee__c" readOnly="true"> <apex:pageBlock title="Hello {!$User.FirstName}!"> You are viewing the {!Employee__c....
0
votes
1answer
3k views

Make Lookup fields read only on a VF page

I have a VF page for creating a new record for a custom Object. It looks like this There is a lookup to Service_Contract__c. I needed to autopopulate it (which was the whole reason behind creating ...
0
votes
2answers
141 views

Disable an inputField (when a sObject record is readonly in the user assigned Profile)

I want to make an inputField disabled when a sObject record is read-only for a user. Tried using Disabled property but it doesn't support for inputField. I have two doubts:- 1. How to check if the ...
0
votes
2answers
1k views

creating OpenActivity using Apex

I am trying to create OpenActivity using apex here is my snippet, OpenActivity obj = new OpenActivity(); obj.DataDoctor7__Description__c = 'Hard Coding'; obj.DataDoctor7__Created_at__c = '29/01/2015';...
0
votes
1answer
1k views

How can I make a visualforce page readonly?

It could be the possible duplicate of this question. All I need to know how can I utilize this technique explained in the answer of this question?
0
votes
2answers
1k views

visualforce page readonly based on logged in user's profile

How to make visualforce page readonly based on profile of the logged in user? I have a pageblock table of outputfield with inline editing, which is not working as read only when enabled readonly="true"...
9
votes
1answer
416 views

Group by Rollup: Visualforce Remoting Exception: Too many query rows: 1000001

I have 557,029 Foo objects in my org. I want to count how many of each kind of picklist value there are within these: Type 1 - 100,000 Type 2 - 60,000 Type 3 - 40,000 Type N - N I thought I could ...
0
votes
2answers
12k views

How to make <apex:inputText> field as read-only using js/jquery

I have a requirement like, when the end user clicks on the list of users, then an input text field should get populated. the input field should be non-editable. lets say the input field value is "{!...
2
votes
2answers
1k views

OutputText value calling a @readOnly method

I want to display the total number of Accounts in an <apex:outputText>. For that, I did : VF : <apex:outputText value="{!$totalAccounts}"/> Controller : public Integer ...
1
vote
2answers
1k views

Can't change Opportunity owner from Trigger because Error record is 'read-only' [duplicate]

This is supposed to be a simple trigger that changes the Opportunity Owner to the the Account Owner upon insert or update of the opportunity. However, I keep getting the error, cannot update the ...