Displaying buttons on Apex Page Message



Hi All,

We might need to display button while showing page message to get user feed back.
 Based on user feedback necessary action need to be taken care.

For example
















Below is the code snippet.

 <apex:pageMessages escape="false"/> 
<apex:outputPanel rendered="{!isYesVisible}">
        <apex:pageMessage severity="info" strength="3" summary="{!applicantMessage}">
         
                <apex:commandButton value="Yes" action="{!cloneOpportunity}"/>
                <apex:commandButton value="No" action="{!stayinSamePage}"/>
         
        </apex:pageMessage>
            </apex:outputPanel>

Comments

Popular posts from this blog

Set Field-Level Security for a Field on Permission Sets Instead of Profiles (Generally Available)

Einstein GPT - Generative Responses : Summer'23 Salesforce Release

Program Assignment Invocable Action : Summer'23 Salesforce Release