Display success message

I am building a form and after clicking on submit button I want to display a message that displays “Form has been submitted successfully”.

How can I do this?

In your quick link, add this below

<entry key="workflowSuccess " value="Request Submitted Successfully"/>

If you want to customise the message and flow, Check these posts:

Hi @kalyan_dev32
Will this be displayed in UI?

Yes it will display on UI

Hi @kalyan_dev32
As a developer I need to open new tabs sometimes while in one tab the form is open. When I open new tab I can see successfully submitted message in every new tab. Below is my quicklink where I added this piece of code.

i believe this is what you’re looking for, Check this Display success message - #3 by kalyan_dev32

Add this in your quicklink

<entry key="httpSession">
<value>
  <Script>
    <Source><![CDATA[ 
      import javax.faces.context.FacesContext;
      import javax.servlet.http.HttpSession;
      
      HttpSession session = null;

      FacesContext fc = FacesContext.getCurrentInstance();
      if (fc!=null && fc.getExternalContext()!=null) {
       session = fc.getExternalContext().getSession(true);
      }
      
      return session;
    ]]></Source>
  </Script>
</value>
</entry>

Add this in your workflow

<Step icon="Default" name="Set Reference Message" posX="354" posY="55">
    <Arg name="httpSession" value="ref:httpSession"/>
    <Script>
      <Source><![CDATA[

      import javax.faces.application.FacesMessage;
      import javax.servlet.http.HttpSession;
      import javax.faces.context.FacesContext;
      import org.apache.commons.logging.Log;
      import org.apache.commons.logging.LogFactory;

      Log log = LogFactory.getLog("wf.script.test");

      try {
        if (httpSession != null) {
          List currentMessages = httpSession.getAttribute("sailpoint.web.PageCodeBase.sessionMessages");
          // add your custom message here
          FacesMessage myMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, "Form submitted successfully.", "Form submitted successfully.");
          List myMessages = new ArrayList();
          myMessages.add(myMessage);
          httpSession.setAttribute("sailpoint.web.PageCodeBase.sessionMessages", myMessages);
          currentMessages = httpSession.getAttribute("sailpoint.web.PageCodeBase.sessionMessages");
        } else {
          throw new Exception("Session is null so cannot show the Message");
        }
      } catch (Exception e) {
        log.error("Exception thrown while setting a banner reference id || Message: " + e.getMessage());
      }

      ]]></Source>
    </Script>
    <Transition to="[Next Step]"/>
  </Step>

hope it resolve your issue!

@kalyan_dev32
Getting this error
sailpoint.tools.GeneralException: No serializer registered for class class org.apache.catalina.session.StandardSessionFacade