You need to sign in to do that
Don't have an account?

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{--------------------------------}
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{--------------------------------}
<apex:inputField value="{!Preview_Flag__c}"/>
Controller:
public class Single_Topic__KAV
{
public Boolean Preview_Flag__c {get; set;}
}
http://www.cloudforce4u.com/2013/07/pass-value-from-visualforce-page-to.html