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

Need to add apex field with value calculated with an if statement


I've added a new field called QMED Sale Date to a visual force page which will have a single value.

I want to add a column for Sale Date which will either use the same dates that are shown in the schedule date or will use the QMED sale date for all the values if the QMED Sale date is populated. 


Currently I have the column available for the Sale date, but have only been able to populate it with the schedule date.  I'm not sure how to manipulate it to perform my if statement.


I can provide a screen shot that better explains my requirements.


I'm a newbie. Any help would be appreciated.