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 Apps / if( not empty then add...
Power Apps
Answered

if( not empty then add specific text in card

(0) ShareShare
ReportReport
Posted on by 29

All,

 

Maybe this is a simple solution but i am getting frustrated in this formula.

I have this code working, but it needs to be the other way around.

 

If(
 IsEmpty([DataCardValue13.Text]),
 "Send to CL for re approval",
 Or(
 IsEmpty([DataCardValue14.Text]),
 "Send to CL for re approval 2",
 Or(
 IsEmpty([DataCardValue15.Text]),
 "Send to CL for re approval 3",
 "Pending"
 )
 )
)

 

 So instead of being blank or empty i want to have it with but the Isnotempty or Isnotblank does not exist.

 

If(
 IsNotEmpty([DataCardValue13.Text]),
 "Send to CL for re approval",
 Or(
 IsNotEmpty([DataCardValue14.Text]),
 "Send to CL for re approval 2",
 Or(
 IsNotEmpty([DataCardValue15.Text]),
 "Send to CL for re approval 3",
 "Pending"
 )
 )
)

 

 Any work arounds for this or simple solution.

So when a specific text field is not empty give me a specific text in another text field.

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Sjon 

    Please consider changing your Formula to the following:

    If(IsBlank(DataCardValue13.Text),
     "Send to CL for re approval",
     IsBlank(DataCardValue14.Text),
     "Send to CL for re approval 2",
     IsBlank(DataCardValue15.Text),
     "Send to CL for re approval 3",
     "Pending"
    )

     

    I hope this is helpful for you.

  • Sjon Profile Picture
    29 on at

    I will change it to is blank.

    But then i still get the wrong outcome, i want to execute when it is not empty or is not blank.

     

     

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Sjon 

    I am not entirely clear on your logic as you have stated it, but if you are looking for the inverse (not) of the conditions, then just add a NOT operator.

     

    Ex:

    If(!IsBlank(DataCardValue13.Text),
     "Send to CL for re approval",
     !IsBlank(DataCardValue14.Text),
     "Send to CL for re approval 2",
     !IsBlank(DataCardValue15.Text),
     "Send to CL for re approval 3",
     "Pending"
    )
  • Sjon Profile Picture
    29 on at

    And that simple ! made it work.

     

    Thank you, i was looking for the old fashion Isnotempty or isnotblank

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Sjon 

    IsEmpty only applies to records/tables not to Text.  IN your original formula you were converting your text into a table (the square brackets) in order to then try to use the IsEmpty on it.

    All you need is IsBlank - that is blank or "".

    And of course...that function returns a true or false, so prepending it with a ! (NOT) operator will flip the trues and falses.

     

    Glad it helps you!

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 Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard