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
Joshua JacksonJoshua Jackson 

Set Default Value when loading VisualForce Page

Hello,

I am just getting started with using salesforce and would like to get some assistance with an issue I can not figure out.  

I have a visual force page that I created that is tied to a button on the page so that when they click the button they get a custom edit screen for that record. However, I am trying to figure out how I would go about having a default value applied to one of the fields once they reach the visual force page.
Matthew CokeMatthew Coke
you'll need to pass it as a parameter when opening the visualforce page, then use the controller to transfer that value to the field