Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Button

how can I get my button to return to the first screen, if I create a local variable with name 

local!currentStep: 1,

a!buttonArrayLayout(
buttons: {
a!buttonWidget(
label: "Atras",
size: "SMALL",
width: "FILL",
style: "NORMAL",
value: local!currentStep - 1,
saveInto: local!currentStep,
showWhen: or( local!currentStep = {1,3} )
)
},
align: "START"
)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi aliciam,

    welcome in the community:

    1.) try to use the insert code function below yourt textfield. it makes it way easier to read code.

    a!buttonArrayLayout(
        buttons: {
            a!buttonWidget(
                label: "Atras",
                size: "SMALL",
                width: "FILL",
                style: "NORMAL",
                value: local!currentStep - 1,
                saveInto: local!currentStep,
                showWhen: or( local!currentStep = {1,3} )
            )
        },
        align: "START"
    )

    if the first screen is another form, you need to submit your current form and build a loop in your process.

Reply
  • 0
    Certified Senior Developer

    Hi aliciam,

    welcome in the community:

    1.) try to use the insert code function below yourt textfield. it makes it way easier to read code.

    a!buttonArrayLayout(
        buttons: {
            a!buttonWidget(
                label: "Atras",
                size: "SMALL",
                width: "FILL",
                style: "NORMAL",
                value: local!currentStep - 1,
                saveInto: local!currentStep,
                showWhen: or( local!currentStep = {1,3} )
            )
        },
        align: "START"
    )

    if the first screen is another form, you need to submit your current form and build a loop in your process.

Children