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