I have a Canvas App that has a 3 step approval, step 1, step 2 and step3. Each step has a comments field and an approve button. When the button is pressed, it changes the form status to "Step 1 Approved". I then want the step 2 approval section to appear so that it shows step 1 as completed with the comments fields filled in and step 2 with a new comments field and a new button. Then the same for step 3.
I'm having a hard time getting it to display the right approval sections at the right time. What's the easiest way to do this?
Any help is appreciated. 🙂
Hi @Jambou,
I am assuming that you have a button for approval, and you want to display another form after the previous one has been approved, as well as update the status of the form. You can do this.
1) The form in my App.
2) Set a variable on the OnHidden property of the screen to record the state of the screen.
OnHidden: Set(Form1status,Blank())
Set the CheckBox:
OnCheck: Set(Form1status,"Approved")
OnUncheck: Set(Form1status,Blank())
//Update the status of form
3) Control the visible of the next form.
Set the next form:
Visible:Checkbox.Value
When I don't approve Form1:
When I approve Form1:
Best regards,
Rimmon Li
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional