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

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,297 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,297 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,297 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard