web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Check if a datacard value is blank issue

(0) ShareShare
ReportReport
Posted on by 128

Hi,


I have this condition on my Form's OnSuccess property where I am checking a datacard value if its blank. If it's not, another logic will run to save data on a list. Here are the weird scenarios

 

1. Selected a record. i removed the data on the datacard and saved. Logic went through because my logic detected the datacard is not blank. But actually, its blank.

2. Edit the same record. datacard is still blank. Logic now detected its blank.

 

it's like it does not know its blank on the initial edit.

 

Logic is like this one. 

If(Not(IsBlank(Trim( DataCardValue6.Text)))
 
Any advice on how i can resolve this to work properly on the first edit?
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    151,883 Most Valuable Professional on at
    Re: Check if a datacard value is blank issue

    Hi @powerdevkris ,

    Try this 

    If(
     Len(Trim(DataCardValue6.Text)) > 0,
     Do Whatever

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • powerdevkris Profile Picture
    128 on at
    Re: Check if a datacard value is blank issue

    Thanks for the info @WarrenBelz. Tried the formula but still having the same issue where if i edit a current record on the datacard and remove the values. its still detecting that it had a value but its actually blank when i saved. 

  • WarrenBelz Profile Picture
    151,883 Most Valuable Professional on at
    Re: Check if a datacard value is blank issue

    Hi @powerdevkris ,

    Very strange - if you put this on a Label

    Len(Trim(DataCardValue6.Text))

    what does it return when the control is empty ?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard