Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

How can I write a regular expression that involves one datatype column to not be lower than another?

(1) ShareShare
ReportReport
Posted on by 520
Categories:
  • Verified answer
    Hugo Bernier Profile Picture
    on at
    Re: How can I write a regular expression that involves one datatype column to not be lower than another?

    The Regular Expression functionality is to validate that the content of a given field matches a certain pattern; it receives the field's value and does not get access to the other fields.

     

    If you want to compare two fields, the easiest way to do this at the moment is to add form validation using Javascript.

     

    Go to the Portal Management app (from the Apps tab in make.powerapps.com) and navigate to Basic Forms .

     

    Find the where you want to add validation and open it. Find the Additional Settings tab and scroll to the Custom JavaScript section and add the script you want compare two fields.

     

     

     

    $(document).ready(function() {
     // Your logic goes here
    });

     

     

    If you want to find a good example of injecting a validator to a page, with full code, check this post, it should get you started.

     

    I hope this helps?!

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43