Pop up on clicking Related Action button

I have a requirement to show pop on clicking the related action button. The scenario is to "Cancel the request", when user clicks on that related action, pop up should show?

  Discussion posts and replies are publicly visible

Parents
  • On the related action you have to call a process model with a start form enabled. This start form just shows the warning message with the possibility to cancel the request. Exactly the way as ManuelHTG suggested.

    =a!formLayout(
      label: if(
        isnull(ri!record.title),
        "Delete?",
        "Delete " & ri!record.title & "?"
      ),
      instructions: "",
      contents: {
        a!paragraphField(
          labelPosition: "COLLAPSED",
          readOnly: true,
          value: "Submitting this form will delete your record. The data will no longer exist or be visible.
    
    After deletion, it is recommended to return to the records list, as this record will become unavailable."
        )
      },
      buttons: a!buttonLayout(
        primaryButtons: {
          a!buttonWidgetSubmit(
            label: "Delete",
            style: "PRIMARY",
            confirmMessage: "Are you sure you want to delete this record? This action cannot be undone."
          )
        },
        secondaryButtons: {
          a!buttonWidgetSubmit(
            label: "Cancel",
            style: "NORMAL",
            value: true,
            saveInto: ri!cancel,
            skipValidation: true
          )
        }
      )
    )

Reply
  • On the related action you have to call a process model with a start form enabled. This start form just shows the warning message with the possibility to cancel the request. Exactly the way as ManuelHTG suggested.

    =a!formLayout(
      label: if(
        isnull(ri!record.title),
        "Delete?",
        "Delete " & ri!record.title & "?"
      ),
      instructions: "",
      contents: {
        a!paragraphField(
          labelPosition: "COLLAPSED",
          readOnly: true,
          value: "Submitting this form will delete your record. The data will no longer exist or be visible.
    
    After deletion, it is recommended to return to the records list, as this record will become unavailable."
        )
      },
      buttons: a!buttonLayout(
        primaryButtons: {
          a!buttonWidgetSubmit(
            label: "Delete",
            style: "PRIMARY",
            confirmMessage: "Are you sure you want to delete this record? This action cannot be undone."
          )
        },
        secondaryButtons: {
          a!buttonWidgetSubmit(
            label: "Cancel",
            style: "NORMAL",
            value: true,
            saveInto: ri!cancel,
            skipValidation: true
          )
        }
      )
    )

Children