Questions tagged [read-only]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
101 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
0 votes
1 answer
408 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 ...
user avatar
1 vote
1 answer
375 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": [ { ...
user avatar
0 votes
1 answer
149 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 ...
user avatar
  • 1
1 vote
1 answer
128 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, ...
user avatar
0 votes
1 answer
71 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" ...
user avatar
  • 1,080
0 votes
1 answer
97 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 ...
user avatar
2 votes
1 answer
55 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?
user avatar
  • 5,714
0 votes
2 answers
57 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....
user avatar
  • 5
1 vote
2 answers
578 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. ...
user avatar
  • 3,205
0 votes
1 answer
19 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 ...
user avatar
  • 3,167
1 vote
2 answers
64 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?
user avatar
0 votes
1 answer
285 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 ...
user avatar
  • 541
0 votes
1 answer
274 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!
user avatar
0 votes
1 answer
818 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){...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
1 vote
0 answers
28 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.
user avatar
5 votes
2 answers
3k 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 ...
user avatar
  • 4,642
0 votes
2 answers
469 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, ...
user avatar
1 vote
0 answers
49 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 ...
user avatar
  • 438
0 votes
1 answer
907 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 ...
user avatar
0 votes
2 answers
491 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 ...
user avatar
1 vote
1 answer
362 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 ...
user avatar
6 votes
0 answers
345 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 ...
user avatar
  • 191
1 vote
2 answers
519 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
user avatar
3 votes
1 answer
209 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> ...
user avatar
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"&...
user avatar
  • 6,100
0 votes
2 answers
997 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 ...
user avatar
  • 61
2 votes
2 answers
3k 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 ...
user avatar
  • 469
0 votes
1 answer
189 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 (...
user avatar
  • 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 ...
user avatar
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 '...
user avatar
0 votes
1 answer
917 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 ...
user avatar
3 votes
0 answers
560 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
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 ...
user avatar
  • 3,754
2 votes
2 answers
330 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 ...
user avatar
  • 3,334
3 votes
1 answer
335 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 ...
user avatar
  • 325
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 ...
user avatar
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? ...
user avatar
  • 5,188
3 votes
1 answer
4k 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,...
user avatar
0 votes
1 answer
136 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 ...
user avatar
  • 604
1 vote
0 answers
390 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 ...
user avatar
  • 193
0 votes
3 answers
5k 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 ...
user avatar
  • 193
1 vote
2 answers
10k 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 ...
user avatar
  • 193
-1 votes
1 answer
22 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?
user avatar
  • 1,325
0 votes
1 answer
822 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. ...
user avatar
1 vote
1 answer
4k 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 ...
user avatar
2 votes
1 answer
34 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 ...
user avatar
  • 2,001