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 statement on !isbla...
Power Apps
Unanswered

If statement on !isblank value database

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

So i want to check my signature database if the customerID i have selected has a signature in it or if it's blank. If the signature field is blank the label should say "Not signed" else "Signed"

 

This is what i have but the first "=" gives an error. 

 

 

If('[dbo].[signaturetest]'.customerID=Value(selectedCustomerID)&IsBlank('[dbo].[signaturetest]'.signature),"Not Signed","Signed")

 

 

This is how my database looks like:

 

AnthonyDB_0-1605607135901.png

So basically if selectedcustomerID=2 the label should say "Not signed. Otherwise it should say "Signed"

 

Thanks in advance!

 

Categories:
  • WarrenBelz Profile Picture
    156,958 Most Valuable Professional on at

    Hi @Anonymous ,

    Try

    If(
     '[dbo].[signaturetest]'.customerID=Value(selectedCustomerID.Text) &&
     IsBlank('[dbo].[signaturetest]'.signature),
     "Not Signed",
     "Signed"
    )

     

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    i tried yours but it doesn't work. I tried changing my code a little bit as i can just see if the customerID=selectedCustomerID. If they dont match each other in the signature database then it should work without the isblank part.

    This is what i have now but somehow the equal always seems to be the problem.

    AnthonyDB_1-1605623866218.png

     

     

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

    @Anonymous 

    You're going to need to actually lookup the item.  Your formula should be like this:

    With({val: LookUp('[dbo].[signaturetest]', customerID=Value(customerIDinput), signature)
     If(
     IsBlank(val),
     "Not Signed",
     "Signed"
     )
    )

    I don't know what your customerIDinput is in this formula, but if it is a textInput, you need to change to customerIDinput.Text.   If it is a Dropdown/Combobox, then you need to reference as customerIDinput.Selected.Value (or associated field in items property of such control).

    If it is a variable, then you can use as-is, but if the variable is only being set by a control value, it is better to just refer to the control rather than create redundant variables.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey Randy,

     

    I figured out i don't really need the signature to make my if statement. I just need to lookup the database if a customerID=selectedcustomerID. If it finds the same customerID it should say "Signed" else "Not Signed"

     

    Kinda this way but i'm making mistakes in my code:

    If(LookUp('[dbo].[signaturetest]',customerID=selectedCustomerID)"Signed","Not Signed")

    AnthonyDB_0-1605627434247.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard