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.

  • Note that if you use a!formLayout() - which comes with navigation buttons bundled into it - you can also use the 'Allow users to step back to this node from the next chained activity.' setting (on the 'Other' tab) on the User Interface nodes where Appian will automatically add a 'Go Back' navigation button for you.

Reply Children