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 Platform Community / Forums / Power Apps / Check if a datacard va...
Power Apps
Unanswered

Check if a datacard value is blank issue

(0) ShareShare
ReportReport
Posted on by 142

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
    152,845 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
    142 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
    152,845 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard