Multi-line confirmation message for the button widget

Hi All,

I'm looking for a way, if we can show multi-line confirmation message for the button widget - confirmMessage property. We want to show the confirmation message systematic way. Is there a way Appian support control characters - "\
" or "\          " ?

OriginalPostID-218107

OriginalPostID-218107

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi @vinayakb this can be done using padding right function I am pasting the code below.

    a!formLayout(
    label: "Form",
    contents: {

    a!sectionLayout(
    label: "Section",
    contents: {}
    )
    },
    buttons: a!buttonLayout(
    primaryButtons: {
    a!buttonWidget(
    label: "Submit",
    submit: true,
    confirmMessage: padright("This is line 1.", 130) & "This is line 2.",
    style: "PRIMARY"
    )
    },
    secondaryButtons: {
    a!buttonWidget(
    label: "Cancel",
    value: true,
    saveInto: ri!cancel,
    submit: true,
    style: "NORMAL",
    validate: false
    )
    }
    )
    )

    Output will be 

Reply
  • 0
    Certified Lead Developer

    Hi @vinayakb this can be done using padding right function I am pasting the code below.

    a!formLayout(
    label: "Form",
    contents: {

    a!sectionLayout(
    label: "Section",
    contents: {}
    )
    },
    buttons: a!buttonLayout(
    primaryButtons: {
    a!buttonWidget(
    label: "Submit",
    submit: true,
    confirmMessage: padright("This is line 1.", 130) & "This is line 2.",
    style: "PRIMARY"
    )
    },
    secondaryButtons: {
    a!buttonWidget(
    label: "Cancel",
    value: true,
    saveInto: ri!cancel,
    submit: true,
    style: "NORMAL",
    validate: false
    )
    }
    )
    )

    Output will be 

Children
No Data