hi,
i created interface using milestone. In interface it executes all steps but in process model when i click next/submit buttton flow got stopped.
a!localVariables( local!milestonesteps:rule!M_TSA_MilestoneSteps( Delivered:ri!OrderTracking['recordType!{6600bb25-98dd-46fe-8391-fbabecac3729}M_TSA Records.fields.{549e9802-7500-4ad2-ab51-144c175dd513}DeliveryStatus'] ), local!Activestep:1, a!formLayout( label: "Order Status", contents: { a!sectionLayout( label: "", contents: { a!milestoneField( label: "", labelPosition: "ABOVE", steps: local!milestonesteps, links: a!startProcessLink(), active: local!Activestep, color: if( isnull(ri!OrderTracking['recordType!{6600bb25-98dd-46fe-8391-fbabecac3729}M_TSA Records.fields.{549e9802-7500-4ad2-ab51-144c175dd513}DeliveryStatus']), {}, if( ri!OrderTracking['recordType!{6600bb25-98dd-46fe-8391-fbabecac3729}M_TSA Records.fields.{549e9802-7500-4ad2-ab51-144c175dd513}DeliveryStatus']=true, "POSITIVE", "NEGATIVE" ) ) ), a!sectionLayout( label: "", contents: { rule!M_TSA_Ordered( Step: local!Activestep ), rule!M_TSA_Packed( Step: local!Activestep ), rule!M_TSA_Shipped( Step: local!Activestep, Delivered: ri!OrderTracking['recordType!{6600bb25-98dd-46fe-8391-fbabecac3729}M_TSA Records.fields.{549e9802-7500-4ad2-ab51-144c175dd513}DeliveryStatus'] ), rule!M_TSA_OrderStatus( Delivered: ri!OrderTracking['recordType!{6600bb25-98dd-46fe-8391-fbabecac3729}M_TSA Records.fields.{549e9802-7500-4ad2-ab51-144c175dd513}DeliveryStatus'], Step: local!Activestep ) } ) } ), }, buttons: a!buttonArrayLayout( buttons: { a!buttonWidget( label: if(local!Activestep<3,"Next","Submit"), saveInto: { if( local!Activestep<4, a!save( local!Activestep,local!Activestep+1 ), {} ), a!save(ri!Button,local!Activestep+1) }, value: if(local!Activestep<3,"Next","Submit"), submit: true, style: "SOLID", loadingIndicator: true, showWhen: local!activestep<4 ), a!buttonWidget( label: "Back", value: ri!Button, saveInto: { if( local!Activestep>1, a!save( local!Activestep,local!Activestep-1 ), {} ), a!save(ri!Button, local!Activestep-1 ) }, submit:true(), style: "OUTLINE", showWhen: local!Activestep>1, validate: false ) } ) ) )
Discussion posts and replies are publicly visible
In your code, on line 68, you need to add a similar condition like line 67 where if the active step is less than 3, then the submit should be false and if it is equal to 3, it should be true.