Questions tagged [read-only]
The read-only tag has no usage guidance.
70
questions
0
votes
1
answer
50
views
How do you make a required field read-only for an object that has a read-only page layout and record type?
I have several fields that are required upon creation. Once created, I change the record type to a read-only type, associate the record type with a read-only page layout too. However, Salesforce doesn'...
0
votes
0
answers
191
views
I am getting this INSUFFICIENT_ACCESS_OR_READONLY:insufficient access rights on object id:-- for all Campaign Member records
INSUFFICIENT_ACCESS_OR_READONLY:insufficient access rights on object id:--
User profile is System Administrator
Marketing User is also checked.
Where can I provide access?
-1
votes
1
answer
235
views
How can I make the public group is just visible for system admin?
I have created a set of users under the public groups.
Now I wanted to make that public group to be visible to system admin .
Basically how to control the visibility of a public group ?
0
votes
0
answers
106
views
Managing heap size by splitting collections
I'm working with a Visualforce page that creates a record of a custom object (let's call it Notification), then triggers a batch class to create a large number of child records. The child records each ...
0
votes
0
answers
74
views
How to restrict users with update permissions in Salesforce to be read-only in Workbench?
I would like to have some of our user community use Workbench (https://workbench.developerforce.com/login.php) to Salesforce, but I would like for them to have read-only access, not updates. It seems ...
0
votes
2
answers
330
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 ...
0
votes
1
answer
1k
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
854
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
2k
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
1k
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
613
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 ...
2
votes
1
answer
616
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
144
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
1
answer
371
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
100
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
2
answers
77
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....
1
vote
2
answers
1k
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
1
answer
117
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 ...
1
vote
2
answers
638
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
573
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 ...
1
vote
1
answer
1k
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
1k
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
102
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 ...
0
votes
2
answers
925
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
90
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
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
1k
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
399
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
494
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 ...
2
votes
2
answers
762
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
295
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"&...
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 ...
2
votes
2
answers
5k
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
1
answer
229
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
1
answer
52
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
3k
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
707
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
3k
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
2
answers
463
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 ...
4
votes
1
answer
987
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
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? ...
3
votes
1
answer
6k
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
151
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
0
answers
480
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 ...