web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Is it possible to requ...
Power Automate
Unanswered

Is it possible to require that 2 different input.text fields in an adaptive card have the same input?

(0) ShareShare
ReportReport
Posted on by 2

Hey, I have an adaptive card that asks a user to register a password. I have 1 input.text field for a user to enter their new password, and a second input.text field for the user to verify their password.

 

I know that I can use regex to set specific password requirements and I can set both fields as required so that the card can't be submitted until the user satisfies all the requirements, but is it possible to also make it so that both fields must match before the user can submit the card?

I have not been able to find a way to do this. I know I can try to match the fields together via a script after the card is submitted, but that's not the best user experience. I appreciate the help.

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,932 Moderator on at

    @jcarrero 

     

    Assuming that you have a Button that allows them to submit,

     

    In the DisplayMode Property of the button, you would say (and this is the simple version since you may have OTHER requirements to add)

     

    DisplayMode Property of the Button

    If(TextInput1.Text = TextInput2.Text, DisplayMode.Edit, DisplayMode.Disabled)

    Now they cannot click the button until they match. If you have other requirements, add them here.


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • jcarrero Profile Picture
    2 on at

    @FLMike 
    Hmm, I can't seem to get it to work. I don't see the DisplayMode property in the adaptive card designer. I tried adding it to the JSON directly like so, but it doesn't seem to work

    jcarrero_0-1697474972149.png


    As for the expression itself, how should I be referring to the input.text fields? Normally if I was going to write a conditional statement that checked the values of two variables, it'd look something like this: ${if(equals($root.enterPassword, $root.verifyPassword))}

    While that works for variables, it doesn't seem to work for an input.text field (at least, not within the currently active card). (note that in this case, the ID of the two input.text fields have been set to 'enterPassword' and 'verifyPassword' respectively)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard