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

Notifications

Announcements

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
    68,707 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard