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
ForceRohitForceRohit 

Functionality of insert filed option in Formula fields

I need the apex code for insert field option that applies in a formula field ...the same functionality on select a value it has to show be the fields in it and at final using insert button it should be inserted 

SFFSFF

I don't understand the question exactly but you seem to be asking how you can update a formula field. Simple answer - you can't. You can, however, update the fields that make up a formula field, and SFDC will handle the calculations automatically and display the result in the formula field after any insert or update operation succeeds. (You may have to re-retrieve the record to see the results in the formula field, if you want to use the database to do the calculation rather than manage it yourself.)

 

Hope this helps,