Skip to main content
shaikg2747
June 8, 2023
Solved

Need some help on POP-UP!!!

  • June 8, 2023
  • 10 replies
  • 1 view

Hi,

Is there any functionality in Appian to show pop-up??

If not, how can we show a pop-up without using interface and button confirmation??

Thanks in advance,

Gousii.

Best answer by stefanhelzle0001

I will post an article on my blog soon. It includes an example of how to show a pop-up window in Appian. This is not rocket science, you just have to hide your UI and show a card layout with shadows enabled instead.

Find the example below:

a!localVariables(
  local!showPopup: false,
  {
    a!sectionLayout(
      showWhen: not(local!showPopup),
      contents: {
        a!textField(
          label: "Text",
        ),
        a!paragraphField(
          label: "Paragraph",
        ),
        a!buttonArrayLayout(
          buttons: {
            a!buttonWidget(
              label: "Show Popup!",
              icon: "arrow-right",
              value: true,
              saveInto: local!showPopup,
              style: "PRIMARY"
            )
          },
          align: "CENTER"
        )
      },
    ),
    a!columnsLayout(
      showWhen: local!showPopup,
      columns: {
        a!columnLayout(),
        a!columnLayout(
          contents: {
            a!cardLayout(
              marginAbove: "EVEN_MORE",
              showBorder: false,
              showShadow: true,
              contents: {
                a!sectionLayout(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        a!richTextItem(
                          text: {
                            "This is a fake popup window!"
                          },
                          size: "MEDIUM_PLUS"
                        ),
                        char(10),
                        char(10),
                        "And shows some text to the user."
                      }
                    )
                  },
                  divider: "BELOW"
                ),
                a!buttonLayout(
                  primaryButtons: {
                    a!buttonWidget(
                      label: "OK",
                      icon: "check",
                      style: "PRIMARY",
                      value: false,
                      saveInto: local!showPopup
                    )
                  },
                  secondaryButtons: {
                    a!buttonWidget(
                      label: "Cancel",
                      icon: "times",
                      style: "NORMAL",
                      value: false,
                      saveInto: local!showPopup
                    )
                  }
                )
              },
            )
          }
        ),
        a!columnLayout()
      },
    )
  }
)

10 replies

tushark6475
June 8, 2023

Hi Shaik, if you want to show any interface as a pop up then create actions to that particular record and attach an interface to that action.
And in case you just want a pop-up interface for confirmation purposes before completing an action or moving to another interface then use
"comfirmHeader" parameter available in a!buttonWidget() component.

stefanhelzle0001
Brainy
June 8, 2023

I will post an article on my blog soon. It includes an example of how to show a pop-up window in Appian. This is not rocket science, you just have to hide your UI and show a card layout with shadows enabled instead.

Find the example below:

a!localVariables(
  local!showPopup: false,
  {
    a!sectionLayout(
      showWhen: not(local!showPopup),
      contents: {
        a!textField(
          label: "Text",
        ),
        a!paragraphField(
          label: "Paragraph",
        ),
        a!buttonArrayLayout(
          buttons: {
            a!buttonWidget(
              label: "Show Popup!",
              icon: "arrow-right",
              value: true,
              saveInto: local!showPopup,
              style: "PRIMARY"
            )
          },
          align: "CENTER"
        )
      },
    ),
    a!columnsLayout(
      showWhen: local!showPopup,
      columns: {
        a!columnLayout(),
        a!columnLayout(
          contents: {
            a!cardLayout(
              marginAbove: "EVEN_MORE",
              showBorder: false,
              showShadow: true,
              contents: {
                a!sectionLayout(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        a!richTextItem(
                          text: {
                            "This is a fake popup window!"
                          },
                          size: "MEDIUM_PLUS"
                        ),
                        char(10),
                        char(10),
                        "And shows some text to the user."
                      }
                    )
                  },
                  divider: "BELOW"
                ),
                a!buttonLayout(
                  primaryButtons: {
                    a!buttonWidget(
                      label: "OK",
                      icon: "check",
                      style: "PRIMARY",
                      value: false,
                      saveInto: local!showPopup
                    )
                  },
                  secondaryButtons: {
                    a!buttonWidget(
                      label: "Cancel",
                      icon: "times",
                      style: "NORMAL",
                      value: false,
                      saveInto: local!showPopup
                    )
                  }
                )
              },
            )
          }
        ),
        a!columnLayout()
      },
    )
  }
)

tushark6475
June 8, 2023

Hi Stefan, this is rocket science. [emoticon:c28b2e4cc20f4ba28d1befdba6bed29c] As we have asked to display the pop-up, not the "fake pop-up" screen. As the common understanding, pop up should look like this - 

mathieud0001
Brainy
June 8, 2023

Only option in that case is a Record Action that opens in a dialog.

June 8, 2023
[deleted]
harshitb6843
June 8, 2023

June 13, 2023

instead of a record type. A site is a custom web page that you can create in Appian to display interfaces, reports, or processes. You can use a site to display your read-only interface and add a link or button to open the record summary view in a new tab or window. This way, the user can easily go back to the site by closing the tab or window.

June 13, 2023

instead of a record type. A site is a custom web page that you can create in Appian to display interfaces, reports, or processes. You can use a site to display your read-only interface and add a link or button to open the record summary view in a new tab or window. This way, the user can easily go back to the site by closing the tab or window.