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
rebvijkumrebvijkum 

How can i pass value from visualforce page to controller extension

I have a Vfp with standard controller="Single_Topic__KAV" and controller extension="Feedbackctrl".
There is a custom checkbox field in Single_Topic__KAV, i want that field value in controller.

In VFP:
i can get the checkbox field by:
<apex:outputfield value="Single_Topic__KAV.Preview_Flag__c"/>

i need the field value to use in controller for:
If(Preview_Flag__c==false){---------------------------}
else{---------------------}
else{--------------------------------}
Roy LuoRoy Luo
Need to use inputField.
<apex:inputField value="{!Preview_Flag__c}"/>

Controller:

public class Single_Topic__KAV
{
   public Boolean Preview_Flag__c {get; set;}
}