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
hemant ranahemant rana 

I have apex column to display the formula field on visualforce page. I am rendering the page on submit of the record and then displaying the newly created record.

I have apex column to display the formula field on visualforce page.
I am rendering the page on submit of the record and then displaying the newly created record.
But issue is formula field value is displaying blank in the results section.
Whereas if i go to record detail page I see the value but not on the vf page.
bob_buzzardbob_buzzard
Formula fields are only evaluated when the record is retrieved from the database, so if you create the new record and then just display that as-is, the formula field will be missing.  You'll need to insert the record, which sets its id, then query the record back from the database (including the formula field) and display that.