Questions tagged [read-only]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
57 views

How to prevent a custom LWC lookup component to be updated

I currently have a LWC in which I render a table with a custom LWC lookup field. How can I make this lookup field uneditable. Is there a syntax or CSS is can use to accomplish this since I currently ...
  • 2,232
0 votes
0 answers
50 views

Prevent user from editing a record from edit screen layout but allow apex to change the record

We have a use case where we want to prevent users from editing opportunity from edit screen once certain criteria is met but would to allow apex to make any changes to the record. Meaning, if a user ...
  • 25
0 votes
1 answer
701 views

LWC iterating over a loop from apex is not let me change the data

today I was trying to iterate and compare an array given from Apex to create a new one without repeated values, but I just couldn't. It was like my logic code was ignored. Then I was reading in ...
0 votes
1 answer
412 views

validation rule for ISCHANGED

Good evening, I have to create one validation rule that should be valid for specific custom profile, specific pick list field value Automotive. The validation rule should make all editable fields Read ...
0 votes
1 answer
1k views

Lightning Input with: Read Only but with Borders

I have a Lightning component with a form. This form has some fields as Read Only and some others editable. I use Lightning input with the property readonly. The issue is that on the ones that are ...
1 vote
1 answer
566 views

Update Nested Array Object passed from Parent to Child in LWC

I have the below array which is being passed from other component. var myArray = [ { "Sequence": 1, "Value": 1, "sections": [ { ...
0 votes
1 answer
337 views

Managed Package overriding Field level Security access

I'm having this issue I have some custom fields imported from a managed package which I need to set to "Read only". I have set the FLS to read only on these fields for all users but when I ...
  • 1
1 vote
1 answer
303 views

Copy read-only object received from parent component

I want to make a copy of an object received through an @api property from a parent component (actually, there are two parent components): /* eslint-disable no-console */ import { LightningElement, ...
0 votes
1 answer
95 views

How to toggle off sforce.connection.update DML updates in a visualforce readOnly page?

Hello Salesforce community, I have 2 vf pages, and 1 vfp component. Each page wraps the same component. The only difference in the pages is that one apex:page tag has readOnly="true" ...
  • 1,080
0 votes
1 answer
222 views

Is it possible to hide a read only section entirely in popup but display it in details?

We have a custom object and in that object's layout, there is a section called 'Billing Information'. All of the 8 fields in that section are read-only. Is it possible to hide the section entirely in ...
2 votes
1 answer
77 views

Add Read Only Annotation on packaged global remote action method

Can I add Read only annotation on the Global remote action method which is previously packaged?
  • 5,734
0 votes
2 answers
62 views

Updating after Trigger

I've tried updating the data after the data is edited in my listview using trigger.and some columns are read only .i want to update a picklist in the object when the record is updated in the list view....
  • 5
1 vote
2 answers
825 views

Any limit for map collection size for ReadOnly page

Context Since Lightning component Aura or LWC does not support @ReadOnly mode yet, we have opted for a Visualforce page to export queried data into an Excel and benefit from higher query rows limit. ...
  • 3,660
0 votes
1 answer
31 views

Disable Ability to Edit RecordType

I have a custom object with a Record Type that is read-only on the page layout but I can still make updates to the Record Type on the page. Why is this? I want to make the field un-editable, is there ...
  • 3,279
1 vote
2 answers
212 views

can a user edit the value of the field through apex which are read only field on layout in salesforce?

I want some fields to be updatable from apex only and want those fields as read-only on layouts for all users. Can I do it by making fields as read-only on layout?
0 votes
1 answer
409 views

Set Dynamic value for an readOnly field- Case Number

On my page am doing a search (Case Number) and storing the Data in the user record, So whenever the user login back trying to display the records based on old search. In that case, Trying to build a ...
  • 551
0 votes
1 answer
566 views

Way to assign read only to ALL fields at once?

Is there a quick and dirty way to assign read only to every field in all objects at once? It is rather tedious for read only profiles to go object by object/field by field. Thanks!
1 vote
1 answer
994 views

SyncedQuote field is read only within a trigger

I'm trying to clone an Opportunity at before update event of Opportunity. But it throws me error, Opportunity SyncedQuote field is read only within a trigger for(Opportunity oppoFull :listOpp){...
0 votes
1 answer
2k views

Can't disable "Edit Read Only Fields" permission for system administrator

If I go to: service setup - profiles - system administrator - system permissions Here there's a long list of permissions. I'd like to disable the "Edit Read Only Fields" permission but there's not ...
1 vote
0 answers
35 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.
5 votes
2 answers
4k 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 ...
  • 4,832
0 votes
2 answers
678 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, ...
1 vote
0 answers
64 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 ...
  • 448
0 votes
1 answer
1k 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
2 answers
768 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
1 answer
386 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 ...
6 votes
0 answers
398 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 ...
  • 191
1 vote
2 answers
592 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
1 answer
244 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> ...
2 votes
1 answer
2k 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"&...
  • 6,230
0 votes
2 answers
1k 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 ...
  • 61
2 votes
2 answers
4k 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 ...
  • 469
0 votes
1 answer
210 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 (...
  • 1
0 votes
1 answer
51 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
0 answers
2k 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
1 answer
1k 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
0 answers
619 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
1 answer
3k 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 ...
2 votes
0 answers
2k 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 ...
  • 3,856
2 votes
2 answers
385 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,355
3 votes
1 answer
615 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 ...
  • 345
0 votes
1 answer
1k 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 ...
4 votes
1 answer
2k 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? ...
  • 5,363
3 votes
1 answer
5k 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
1 answer
142 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 ...
  • 623
1 vote
0 answers
419 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 ...
  • 193
0 votes
3 answers
6k 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 ...
  • 193
1 vote
2 answers
12k 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 ...
  • 193
-1 votes
1 answer
24 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?
  • 1,315
0 votes
1 answer
873 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. ...