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
HelloSanHelloSan 

i want to uncheck the standard check box field on VF Page independent of user changes,how can this be achieved

bob_buzzardbob_buzzard
By standard checkbox do you mean a standard field? If you have a custom or extension controller you can simply change the value on the record before saving it. If you are using a standard controller you'll need to add some JavaScript - I would add some to set the input to checked on load of the page and then blur every time the user tried to focus on it, which would have the effect of stopping them from changing it.
HelloSanHelloSan
Thank Bob
On the custom edit form the field (All-Day Event) is unchecked but once the form is saved it is checked by default, no triggers or no workflow rules are written, how can this be done
Abhishek_DEOAbhishek_DEO
If you are talking about IsAllDayEvent field (Label: All-Day Event), it has a property "Defaulted on create". See below

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_event.htm
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_activityhistory.htm

It might be taking default value(True) on create as you are not supplying any value. Did you try setting this as false in code as Bob mentioned?