function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Matt GarnettMatt Garnett 

Read-only fields can be changed through the API?

Hi guys,

Currently doing a mock exam for my Platform App Builder exam and the question and answer below is confusing to me:

User-added image

Where does it say on the referenced page explicitly that you can edit read-only fields via API's?

Link here: https://help.salesforce.com/HTViewHelpDoc?id=customize_layoutoverview.htm

Any clarification on the question much appreciated.

Matt.
Best Answer chosen by Matt Garnett
Michael Adrian AlcazarMichael Adrian Alcazar
This would be correct as the Read only was only set on the page layout and not the field itself 

The field will only not be able to accept the data vai API is if you go to the field itselft under setup and edit the FLS to Read only. 

All Answers

Michael Adrian AlcazarMichael Adrian Alcazar
This would be correct as the Read only was only set on the page layout and not the field itself 

The field will only not be able to accept the data vai API is if you go to the field itselft under setup and edit the FLS to Read only. 
This was selected as the best answer
Amit Chaudhary 8Amit Chaudhary 8
If field is set as read only by page layout and FLS then you can update the same by API but if field is read only on field level (formula field) then you cant change that one