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 / Validations for Add Bu...
Power Apps
Unanswered

Validations for Add Button icon and PO Amount and Remaining PO Amount Calculation down when add one row.

(0) ShareShare
ReportReport
Posted on by 10

Validations for Add Button Icons:
1 PO Amount and Remaining PO Amount Calculation:
1.1. When a value is entered in the PO Amount field, it should be reflected in the Remaining PO Amount column.
1.2 As new rows are added, the amount is calculated phase-wise.

2. Example Workflow: If the PO Amount is set to 1000:
1. Adding Row 1 (Phase 1) with an invoice amount of 500 will update the Remaining Charges to 1000.
2. Adding Row 2 (Phase 2) will automatically set the Remaining Charges to 500 (1000 - 500) in the new row with an invoice amount of 500.

How to implement this?

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

    Hi @Jez1 ,

     

    Could you please show some screenshots about your app?

     

     

    Best regards,

    Rimmon

  • Jez1 Profile Picture
    10 on at

    @v-mengmli-msft :

    Jez1_0-1718709493195.png

     

    I need assistance with implementing validations for an "Add" button in Power Apps. Here’s the scenario:

    1. I have a text field named "POAmount" and a gallery where I can add rows using an "Add" button.
    2. When the "Add" button is clicked, a new collection should be added only if the "POAmount" field has a value.
    3. Each collection in the gallery includes a field called "RemainingPOAmountTextInput". The first row's "RemainingPOAmountTextInput" should initially match the value in the "POAmount" field.
    4. For subsequent rows added via the "Add" button:
      • The "RemainingPOAmountTextInput" field should only accept a value if an "InvoiceAmount" is entered.
      • When an "InvoiceAmount" is entered for a row, the "RemainingPOAmountTextInput" for the next row should automatically update by subtracting the "InvoiceAmount" from the previous row's "RemainingPOAmountTextInput".

    Could someone please help me with the formula or approach to achieve this in Power Apps? Thank you!

    these are my rows name:
    Patch(
    CMSRequestDetails,
    Defaults(CMSRequestDetails),
    {
    Comments: CommentsTextBox.Text,
    PoAmount: Value(PoAmountTextBox.Text),
    InvoiceAmount: Value(InvoiceAmountTextBox.Text),
    InvoiceDueDate: InvoiceDueDateDatePicker.SelectedDate,
    ProceedDate: ProceedDateDatePicker.SelectedDate,
    EmailBody: EmailBodyTextBox.Text
    }
    );



  • Jez1 Profile Picture
    10 on at

    @v-mengmli-msft : THERE?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard