Activity Forums Salesforce® Discussions Checkbox checked then fields will appear

  • Himanshu

    Member
    July 28, 2016 at 10:42 am

    Hi Tanu,

    <apex:page controller="testcontroller">

    <apex:form >

    <apex:pageBlock >
    <apex:commandButton value="Process"/>
    <apex:inputCheckbox value="{!output1}">Export</apex:inputCheckbox>
    <apex:inputCheckbox value="{!output2}">Import</apex:inputCheckbox>
    <apex:outputPanel id="out1" rendered="{!output1}">
    <p>hello this is sfdc</p>
    </apex:outputPanel>
    <apex:outputPanel id="out2" rendered="{!output2}">
    <p>HEllo this is nitesh</p>
    </apex:outputPanel>
    </apex:pageBlock>
    </apex:form>
    </apex:page>

    controller:-

    //##controller code

    public with sharing class testcontroller{

    public boolean output2 { get; set; }

    public boolean output1 { get; set; }

    public testactionsupportcontroller(){
    output1=false;
    output2=false;

    }

    }

    Hope this helps you.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos