function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
P KP K 

how to show Feedback link in footer. now how to show popup window alert when click on Submit Feedback

how to show Feedback link in footer. now how to show popup window alert when click on Submit Feedback.

VF

<apex:page standardController="WorkFeedback" extensions="FeedBackController" sidebar="false" showHeader="false" >
<apex:form >
  <apex:pageBlock title="Feedback Form" rendered="{!Hide}">
   <apex:pageBlockSection columns="1" >
   
    <apex:inputField value="{!WorkFeedback.Feedback}"/>
   </apex:pageBlockSection>
   <apex:pageBlockButtons location="bottom">
    <apex:commandButton value="Submit" action="{!Save}"/>
    <apex:commandButton value="Cancel" onclick="self.close()"/>
   </apex:pageBlockButtons>
  </apex:pageBlock>
  <apex:pageBlock rendered="{!Show}">
   <center> Your feedback has been successfully submitted.
            Thank you for leaving feedback.
            Your contribution is valued and appreciated. </center>
   <apex:commandButton value="Ok" onclick="self.close()"/>
  </apex:pageBlock>
</apex:form>
</apex:page>


......

Controller

public class FeedBackController {
   
    public ApexPages.StandardController con;
    public Boolean Hide{get;set;}
    public Boolean Show{get;set;}
   
    public FeedBackController(ApexPages.StandardController controller) {
        con=controller;
        Hide=true;
        Show=false;
    }
   
    public PageReference save()
    {
        con.save();
        Hide=false;
        Show=true;
        return null;   
    }

}
Rajesh PotnuruRajesh Potnuru
Hi,
Use Java script to show popup window alert when click on Submit Feedback.

Thanks & Regards,
Rajesh Potnuru