Activity › Forums › Salesforce® Discussions › How to change the value of formula field by Salesforce Visualforce page?
-
How to change the value of formula field by Salesforce Visualforce page?
Posted by Raghav Chaturvedi on July 18, 2017 at 3:29 AMHow to change the value of formula field by your Salesforce Visualforce page?
S replied 8 years, 10 months ago 4 Members · 3 Replies -
3 Replies
-
Formula field value cannot be changed directly, they are read only. However, the value of formula fields can be changed by changing the values of the fields referenced in the formula fields.
- [adinserter block='9']
-
Hi,
A formula is similar to an equation that is executed at run time. Depending on the context of the formula, it can make use of various data and operations to perform the calculation. A useful way to think about formulas is that they are similar to formulas on a spreadsheet. These formulas can make use of data and operations to calculate a new value of some type.
Formulas are widely used in the Force.com platform and should be considered first before jumping into Apex Code. The same formula syntax can be used to create default values, data validation rules, custom field formulas, conditional logic on Visualforce pages, and rules for determining when certain actions should occur, such as workflow actions.
for more details :- http://wiki.developerforce.com/page/An_Introduction_to_Formulas
-
Can you help with more details here ? Formula field will be changed only if the referenced field involved gets changed. So, if you are changing that, the formula will change automatically.
Log In to reply.