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 / URL Validation on butt...
Power Automate
Answered

URL Validation on button click

(0) ShareShare
ReportReport
Posted on by 184
Hi,
 
I have textbox to enter URL and on button click of Validate.
 
It should display the Failed message on label1 and for success it should display on label2.
 
In the button click I am able to write the piece of code as mentioned below
 
But the problem is the label1 and label2 are not getting updated with success or failure.
 
Please let me know if I am missing anything here
 
If(
    IsMatch(
        EntraIDAppRedirectURLSPADataCardValue.Text,
        "(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]%@!\$&’\(\)\*\+,;=.]+$"
    ),
    true,
    false
)
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,110 Most Valuable Professional on at
    Instead of returning just a True or False you should be setting a boolean variable to true or false. Then use that variable in the visible property of Labels 1 and 2 to show the appropriate label based on the outcome.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • NS-10041416-0 Profile Picture
    184 on at
    Thanks @Pstork1,
     
    It worked well.
     
    Regards,
     
    Sudheer

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
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard