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 Apps / Validation In PowerApps
Power Apps
Unanswered

Validation In PowerApps

(0) ShareShare
ReportReport
Posted on by

I have Canvas Apps screen where I have two text columns that are Name and ID, I have to do the below validation before/while submitting.

If Name is non-blank, then ID should not be blank

If ID is non-blank, then Name should not be blank

(That means either both fields should be blank or both fields should not be blank).

 

How to do this scenario. 

Categories:
I have the same question (0)
  • vish3027 Profile Picture
    434 on at

    @Anonymous 
    You can try like:

    If((IsBlank(ID) && IsBlank(Name) || (!IsBlank(ID) && !IsBlank(Name)),Submit,Error)

    Thanks

  • Community Power Platform Member Profile Picture
    on at

    How to put notification type if that filled and this should be filled like that scenario on data cards itself. My datacards are 

    DataCardValue13--Name
    DataCardValue83--ID

    In which field i need to keep formula for these cards.

  • Community Power Platform Member Profile Picture
    on at

    getting this if condition having invalid arguments

  • vish3027 Profile Picture
    434 on at

    @Anonymous You need write this on your submit button.

     

    Could you please share your formula? Also what type of notifications you want to show.

     

    Thanks

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    little bit modification worked for me

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard