Skip to main content

I have two command buttons (say A , B). I want when A is clicked then only B would be shown. When B clicked then it would be hidden again. Is this achievable ? Please find my page below.

Page snippet:

<apex:panelGrid columns="3" > <apex:inputFile value="{!csvFileBody}" />Page snippet:

    <apex:panelGrid columns="3" >
        <apex:actionRegioninputFile value="{!csvFileBody}"  />
             
        <apex:actionRegion >   
             <apex:commandButton value="Check updates" action="{!readcsvFile}" />
       
        </apex:actionRegion>
              <apex:pagemessages id="errmsg"/>
             <apex:commandButton value="Reload file" action="{!reset}" onclick="window.location.reload();" rendered="{!sObjectList.size!=0}" /> 
           
       
     
        
 </apex:panelGrid>

I have two command buttons (say A , B). I want when A is clicked then only B would be shown. When B clicked then it would be hidden again. Is this achievable ? Please find my page below.

Page snippet:

<apex:panelGrid columns="3" > <apex:inputFile value="{!csvFileBody}" />

              <apex:actionRegion >  
                    <apex:commandButton value="Check updates" action="{!readcsvFile}" />
              </apex:actionRegion>
              <apex:pagemessages id="errmsg"/>
             <apex:commandButton value="Reload file" action="{!reset}" onclick="window.location.reload();" rendered="{!sObjectList.size!=0}" /> 
           
           
        </apex:panelGrid>

I have two command buttons (say A , B). I want when A is clicked then only B would be shown. When B clicked then it would be hidden again. Is this achievable ? Please find my page below.

Page snippet:

 <apex:panelGrid columns="3" >
        <apex:inputFile value="{!csvFileBody}"  />
             
        <apex:actionRegion >   
             <apex:commandButton value="Check updates" action="{!readcsvFile}" />   
        </apex:actionRegion>
        <apex:pagemessages id="errmsg"/>
        <apex:commandButton value="Reload file" action="{!reset}" onclick="window.location.reload();" rendered="{!sObjectList.size!=0}" />                 
            
 </apex:panelGrid>
Source Link
Testing_SFDC
  • 3k
  • 10
  • 64
  • 144

Command button display control

I have two command buttons (say A , B). I want when A is clicked then only B would be shown. When B clicked then it would be hidden again. Is this achievable ? Please find my page below.

Page snippet:

<apex:panelGrid columns="3" > <apex:inputFile value="{!csvFileBody}" />

              <apex:actionRegion >  
                    <apex:commandButton value="Check updates" action="{!readcsvFile}" />
              </apex:actionRegion>
              <apex:pagemessages id="errmsg"/>
             <apex:commandButton value="Reload file" action="{!reset}" onclick="window.location.reload();" rendered="{!sObjectList.size!=0}" /> 
           
           
        </apex:panelGrid>