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 / Referencing Data Cards...
Power Apps
Answered

Referencing Data Cards in IF function

(0) ShareShare
ReportReport
Posted on by 24

We are working on a job tracking form and we are stumped here. We are trying to coax the Order sign out time card to display the now time whenever a value is put into the Total pallets card. We an quite get an If function to work and also tried Not(isblank). What is the best way to accomplish this?

 

Thanks

app out time.png
Categories:
  • Verified answer
    mmollet Profile Picture
    3,187 on at

    If(IsBlank(TextInput1), "", Now())

     

    This will leave the text box blank if there is no value in the pallet input box and will put the current date and time if there is something in the input box.

     

    Nothing typed:

    Screenshot 2023-02-06 at 3.45.58 PM.png

     

    After typing a number (or anything) into the pallets box:

    Screenshot 2023-02-06 at 3.46.15 PM.png

     

    Since you are using cards from a form you will have to swap out textinput1 with your text input name inside the card. Make sure you are not saying If(isBlank(yourcardname)) because the card is never blank and therefore will not perform as you expected. You need to be checking the blank status of the actual text input INSIDE the card control.

     

    If this helped mark as a solution and if not explain a little more and ill try to help out again!

  • bmills660 Profile Picture
    24 on at

    That is way closer but we are having trouble with the syntax on the Now value

     

     

    MicrosoftTeams-image.png
  • mmollet Profile Picture
    3,187 on at

    I think it may be due to both of your calls on the datacardvalues. You should try adding a '.' after those and then selecting the text property. What you are doing now is trying to comparing a control type to an int or number type. this is like saying is this object > 0 which doesnt make sense. If you say is this object.text > 0 then that has a better chance of making sense. You can then limit the input to numbers and be sure that the type will always match.

     

    In short try to add .text to both of the datacardvalues you have in that formula.

  • bmills660 Profile Picture
    24 on at

    Sorry I misread the first time that was perfect! thank 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

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard