Skip to main content
danielo1462
August 9, 2023
Question

Submit button not working - Milestone interface pattern.

  • August 9, 2023
  • 4 replies
  • 0 views

Hello everyone.

I need help.

Am working on a process model for a MILESTONE (BAR) PATTERN interface. When I lunch "Start Process for Debugging", the MILESTONE form load for me to input data. After inputting data, I click next and the next step load until I get to the final step, and I click the submit but nothing happens when I click the submit button. The submit button will not submit the form. Thank you for your assistance.

a!columnsLayout(
columns: {
a!columnLayout(
contents: {
a!buttonArrayLayout(
buttons: {
a!buttonWidget(
label: "Back",
value: local!currentMilestoneBarStep - 1,
saveInto: local!currentMilestoneBarStep,
style: "NORMAL",
showWhen: local!currentMilestoneBarStep > 1
),
a!buttonWidget(
label: cons!GCO_TEXT_VALUE_CANCEL,
style: if(
local!currentMilestoneBarStep = 1,
"NORMAL",
"LINK"
)
)
},
align: "START"
)
}
),
a!columnLayout(
contents: {
a!buttonArrayLayout(
buttons: a!buttonWidget(
label: if(
local!currentMilestoneBarStep = length(local!milestoneBarSteps),
"Submit",
"Next"
),
saveInto: if(
local!currentMilestoneBarStep = length(local!milestoneBarSteps),
{ },
a!save(
local!currentMilestoneBarStep,
local!currentMilestoneBarStep + 1
)
),
style: "PRIMARY"
)
)
}

4 replies

August 9, 2023

Hi, i think you forgot to add submit: true() configuration under the Submit buttonwidget.

richardm900458
August 9, 2023

Hello danielo,
welcome to the community. 
hint: try to use the insert code functionality. this makes the life of the reader way easier.

and as deepak said.
read the parameters in the documentation
https://docs.appian.com/suite/help/23.2/Button_Component.html

Submit

submit

Boolean

Determines whether this button submits a form after saving its value.


you need a submit:true in your widget

danielo1462
August 9, 2023

Hi Richard.

Thank you for your insight. Duly noted. I was able to solve the issue with submit: true() configuration. Thanks again

danielo1462
August 9, 2023

Hi Deepak. Thank you for the response. You are right. I was missing the submit: true() configuration with if ( local!currentMilestoneBarStep = length (local!milestoneBarSteps ) conditions.