cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IgnacioOrtiz
Frequent Visitor

How to duplicate or move control depending on approver

Hi all, this is my first post here, hopefully this is a good question as searching for it simply didn't return anything, or maybe I'm searching the wrong thing...

 

I'm building the following App screen, the backend is SharePoint, there will be 2 levels of approvals that will be handled by Power Automate, and the Action field is a choice type that will tell the workflow it has been either approved or rejected.

 

This brings me to the question. How can I duplicate the Action control, or switch it from First to Second approver "section" (I will use conditional logic to show/hide fields depending on the requestor/approver1/approver2 looking at the screen) without creating a second Action field?

Does it seem better to have the option to Approve or Reject bound to an icon button within the form section instead of a DataCard value?

 

IgnacioOrtiz_1-1658936490370.png

 

Thank you for taking the time to look at this!

1 ACCEPTED SOLUTION

Accepted Solutions
IgnacioOrtiz
Frequent Visitor

Actually... I just have to shift the "Action" field to the bottom of the approval form and then show/hide the rest of the fields and it will always be there by the bottom. Apparently I just needed to think this one through a bit. Thanks @AJ_vizMan for your reply.

View solution in original post

3 REPLIES 3
AJ_vizMan
Helper V
Helper V

Hi @IgnacioOrtiz  - I think it is important to capture the decision (Approve/Reject) by Approver 1 and same goes to Approver 2.

As you mentioned, use conditional logic to show/hide fields on basis of decision by approver 1.

Use logic on visible property of control in Approver 2 section

IgnacioOrtiz
Frequent Visitor

@AJ_vizManthank you for your reply but that was not my question, I do understand it's important and why I'm asking about to duplicate or shift the control from position so that the second approver can also use it, or use icons which is not ideal in my scenario as this can also be done through the SharePoint item (This will allow the WF to set the correct Status depending on the level of approval).

In SharePoint it's easy, PowerAutomate clears the Action that is a required field, and unless it's not updated the flow won't trigger.

IgnacioOrtiz
Frequent Visitor

Actually... I just have to shift the "Action" field to the bottom of the approval form and then show/hide the rest of the fields and it will always be there by the bottom. Apparently I just needed to think this one through a bit. Thanks @AJ_vizMan for your reply.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,781)