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 / The IsBlank value is n...
Power Apps
Answered

The IsBlank value is not working

(0) ShareShare
ReportReport
Posted on by 261

Hello

 

I am using the following code to check if one of the three fieds are empty it needs to work on a save button:

 

If(
    IsBlank(DataCardValue2.Text) || IsBlank(DataCardValue3.Text) || IsBlank(DataCardKey4.Text),
    Notify(
        "You need to fillout all fields...!!!",
        NotificationType.Error
    ),
    Patch(
        'Brasil-Lookup-Main',
        Form1.Updates
    )
);
 
But it is always saving..., not sure why?
 
Any idea?
Thanks in advance...
 
Cheers
Michael
Categories:
I have the same question (0)
  • VishalJhaveri Profile Picture
    1,167 Moderator on at

     

    If(
     Len(TrimEnds(DataCardValue2.Text))=0 || Len(TrimEnds(DataCardValue3.Text))=0 || Len(TrimEnds(DataCardValue4.Text))=0 ,
     Notify(
     "You need to fillout all fields...!!!",
     NotificationType.Error
     ),
     Patch(
     'Brasil-Lookup-Main',
     Form1.Updates
     )
    );

    If my answer helps you please mark it as solution.

     

  • Verified answer
    MD2024 Profile Picture
    261 on at

    OK, I changed the DataCardKey4.Text to other value and it worked 😉

  • VishalJhaveri Profile Picture
    1,167 Moderator on at

    Can you mark my answer as solution if it worked? @MD2024 

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard