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 Apps
Answered

Patch blank

(0) ShareShare
ReportReport
Posted on by 725

Hi Everyone

I have a dropdown in a gallery patching on change. It patches both the value of the dropdown and true/false to another, but I would also like it to patch blank to another column if dropdown selection is blank.

 

Patch(
 Sanford_Pallet_Serial_Number_Record,
 ThisItem,
 {
 SNDumped: !IsBlank(DropdownReason.Selected) && DropdownReason.Selected.Value <> "",
 DumpedSNReason: DropdownReason.Selected.Value
 }
)

 

Dropdown is hardcoded with the following.

 

["","Label Damage","Production Sample","Over Print","Part Box"]

 

So if I choose "" from my dropdown, I would like it to do what it currently does plus patch "" to the Palletnumber column.

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Corissandageri :

    Please try:

    Step1:turn on the 'Formula-level error management' feature

    1.JPG

    Step2:try this code:

    Patch(
     Sanford_Pallet_Serial_Number_Record,
     ThisItem,
     {
     SNDumped: !IsBlank(DropdownReason.Selected) && DropdownReason.Selected.Value <> "",
     DumpedSNReason: DropdownReason.Selected.Value,
     Palletnumber:If(DropdownReason.Selected.Value = "",Blank())
     }
    )

    Best Regards,

    Bof

  • R Bakker Profile Picture
    725 on at

    Thanks Bof

    This works well, but what is Formula level error management?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard