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 / Update 3 text input fi...
Power Apps
Unanswered

Update 3 text input fields using the onchage of any of the same 3 text input fields

(0) ShareShare
ReportReport
Posted on by 45

I have 4 input fields. txtMatCost, txtMatPct, txtMatMarkup and txtMatRate.

I would like these 3 fields, txtMatPct, txtMatMarkup and txtMatRate to be updated if any of the other 2 fields are changed. I don't want to change the value of txtMatCost.

I tried this but get an error on UpdateValues not being valid:

UpdateValues() {
 // get current values from collections
 Set(cost, First(costCol).cost);
 Set(pct, First(pctCol).pct);
 Set(markup, First(markupCol).markup);

 // calculate other fields
 Set(rate, cost * (1 + markup / 100));

 // update text fields
 Set(txtMatRate.Text, Text(rate, "$0.00"));
 Set(txtMatPct.Text, Text(((rate / cost) - 1) * 100, "0.00") & "%");
 Set(txtMatMarkup.Text, Text(markup, "$0.00"));
}

Am i trying to go about this the wrong way?

btw, I have not set UpdateValues anywhere else.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    Hi @MarkBaker ,

    What exactly is UpdateValues() - it is not a valid function to my knowledge.

  • SebS Profile Picture
    4,824 Super User 2026 Season 1 on at

    @MarkBaker 

     

    It's looks like You trying to use VB.Net, where Power Apps use FX Language 🙂

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard