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 / How to call a text inp...
Power Apps
Answered

How to call a text input's onChange action manually

(0) ShareShare
ReportReport
Posted on by 22

Hi Experts,

 

I have a gallery, from which i am doing a total on a text input. This works fine by itself. However i am to call the onChange action on this text input so that a set of instructions are called manually.  The functionality on the OnChange actually takes the amount in the text input and displays it in words in another label. This works perfectly if the text input it edited, however i would like to load the lines in the gallery and make the total read only and fire the onChange from maybe the form OnVisible so that the label with the words gets printed.

 

Is this possible or is there another work around ?

 

Thank you all in advance 🙂

 

Regards,

Ash

Categories:
I have the same question (0)
  • nickellis74 Profile Picture
    432 Moderator on at

    This is a bit of a cheeky reply because I'm not sure I can help but I am interested in how you've converted numbers to text.

  • ashtfg Profile Picture
    22 on at
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ashtfg Are you calculating this total in the TextBox manually or does it get calculated automatically based on the values in the Gallery?

  • ashtfg Profile Picture
    22 on at

    Automatically using sum of gallery column. 

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ashtfg Can you show me that code and also tell me where are you doing it and how you are setting the value to this Total Text Input.

  • ashtfg Profile Picture
    22 on at

    Also i tried to call the OnSelect Property of by using Select(tbAmountTotal) on the any changes but that also did not work, i dont know why.

  • ashtfg Profile Picture
    22 on at

    Any ideas @CNT  ?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ashtfg The OnChange() property will fire only when a change is made and the user navigates away from the control, say clicks outside the TextInput.

    Rather than doing this in the OnChange(), you can do this calculation in the same place where the other calculation is done and set it to a variable and then set the variable in the Text property of the Label.

  • ashtfg Profile Picture
    22 on at

    While i try this i realise that one of my posts was still pending moderation since i updated it. You asked me for the code and i have attached it here. Btw this is a newer version the labels are on visible hidden since they werent working correctly.

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ashtfg Please share just the few lines of code not the whole app.

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

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard