How to Validate Input Sum Equals 100% Before Submitting an Adaptive Card in Power Automate for Teams
Hello everyone,
I’m working on a Power Automate flow where I need to collect three percentage values (W1, W2, and W3) from users via an Adaptive Card in Microsoft Teams. My main challenge is that I need to validate that the sum of these three inputs equals 100% before the user can submit the card. If the sum is not 100%, the card should prompt the user to adjust their inputs accordingly.
I’m using the Teams action “Post an Adaptive Card to a Teams channel and wait for a response” in Power Automate to generate and post this card.
The issue I’m facing is:
I cannot reference or access the inputted values within the Adaptive Card to perform the validation before submission.
I need a way to prevent the user from submitting the card unless W1 + W2 + W3 equals 100%.
Ideally, the card would display an error message or disable the “Submit” button until the validation condition is met.
I’ve looked into Adaptive Card expressions but haven’t found a solution that allows for validating user input within the card itself before submission.
Any guidance or suggestions would be greatly appreciated!
Thank you in advance for your help.
Hello everyone,I’m working on a Power Automate flow where I need to collect three percentage values (W1, W2, and W3) from users via an Adaptive Card in Microsoft Teams. My main challenge is that I need to validate that the sum of these three inputs equals 100% before the user can submit the card. If the sum is not 100%, the card should prompt the user to adjust their inputs accordingly.I’m using the Teams action “Post an Adaptive Card to a Teams channel and wait for a response” in Power Automate to generate and post this card.The issue I’m facing is:I cannot reference or access the inputted values within the Adaptive Card to perform the validation before submission.I need a way to prevent the user from submitting the card unless W1 + W2 + W3 equals 100%.Ideally, the card would display an error message or disable the “Submit” button until the validation condition is met.I’ve looked into Adaptive Card expressions but haven’t found a solution that allows for validating user input within the card itself before submission.Any guidance or suggestions would be greatly appreciated!Thank you in advance for your help. Read More