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 / urgent need why the am...
Power Apps
Answered

urgent need why the amount didn't empty in the SP list and update?

(0) ShareShare
ReportReport
Posted on by 1,994

hi

 

I have a gallery when the status is rejected the amount is empty which is fine but the SP list amount was not removed,  can please help

 

If(ThisItem.Status.Value = "Rejected","", Text(ThisItem.InvAmt, "$#,###.00"))

Form is Default =Parent.Default

 

the form and SP List still show the amount but gallery view is empty.  

Categories:
I have the same question (0)
  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @bbsin 

     

    Are you using a form to do the changes ?

  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @bbsin ,

    What's your purpose? I cannot get your requirement by the given information.

    Do you want to clear the amount when the status is rejected?

    At least your formula seems without any error.

    Best regards,

    Allen

  • bbsin Profile Picture
    1,994 on at

    Yes I am using a Form to submit and it is to update to SP list

    and gallery to view

  • bbsin Profile Picture
    1,994 on at

    Hi both

     

    Yes I want the amount to be deleted in SP list when it's rejected, there should not be any amount inside when rejected. 

     

    I only input the formula in gallery, do I need to put the formula in the FORM where the amount datacard is too?

    the amount datacard in the FORM is Parent.Default

    should I change to the same formula - If(ThisItem.Status.Value = "Rejected","", Text(ThisItem.InvAmt, "$#,###.00"))

     

    Thanks

  • Verified answer
    Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @bbsin 

     

    If its gallery and you're using a dropdown inside gallery put this code OnChange this code it will also change the Status to Rejected 

     

     

     

    If(
     Dropdown7.Selected.Value = "Rejected",
     Patch(
     'Loan Management',
     ThisItem,
     {
     Status: {Value: "Rejected"},
     InvAmt: "0" // If you need to change to empty use Blank()
     }
     )
    )

     

     

    Please change the dropdown name and the other to your control names 

     

    CaptureOnchange.PNG

     

  • bbsin Profile Picture
    1,994 on at

    @Ramole  Thanks.

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @bbsin 

    You welcome, If my answer helps you, then please consider Accept it as the solution to help the others

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

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard