You need to sign in to do that
Don't have an account?
Rohith Kumar 98
How to render a pageBlockSection on click of commandButton?
I want to render a particular pageBlockSection when a commandButton is clicked.
Command Button:
Page Block Section:
Please help, thanks in advance.
Command Button:
<apex:commandButton value="Add Labor" id="AddLabour" style="margin-left: 90%"/>
Page Block Section:
<apex:pageBlockSection title="Search Labours" collapsible="false" columns="3"> <apex:outputLabel value="Component" for="SearchLaborKey"/> <apex:inputText id="SearchLaborKey" style="width: 100%"/> <apex:commandButton value="Find Labor Cost" style="margin-left: 70%; background:#0170b7; color:white"/> </apex:pageBlockSection>
Please help, thanks in advance.
Add in visualforce page
Add in Apex class:
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh