Questions tagged [read-only]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 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
vote
1answer
18 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
1answer
37 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" ...
0
votes
1answer
24 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
1answer
31 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?
0
votes
2answers
52 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....
0
votes
0answers
63 views

Read only and pre-selected dependent picklist on flow

I'm facing a problem where I need to use a dependent picklist on a flow, but the controlling field has to be pre-selected and read only. Is there any way I can achieve this without creating a custom ...
1
vote
2answers
229 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. ...
0
votes
1answer
15 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 ...
0
votes
0answers
16 views

How to make Service team (records)cases readonly for sales team?

I have two teams service team and sales team. I want to make service team Cases(records) read-only for the sales team. How can I do that?
1
vote
2answers
28 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
1answer
155 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 ...
0
votes
1answer
52 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!
0
votes
1answer
387 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
1answer
579 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
0answers
25 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
2answers
2k 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
232 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
0answers
34 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
362 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
2answers
157 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
331 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
0answers
265 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
381 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
130 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
1answer
1k 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
871 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
2k 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
160 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
46 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
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
1answer
596 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
504 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
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 ...
2
votes
0answers
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 ...
2
votes
2answers
154 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
192 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
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
1answer
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? ...
3
votes
1answer
3k 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
99 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
379 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
3k 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 ...
1
vote
2answers
5k 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
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?
0
votes
1answer
705 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
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 ...
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
115 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
259 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 ...