web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Canvas App: Change tex...
Power Apps
Unanswered

Canvas App: Change text in Text field when another field is filled.

(0) ShareShare
ReportReport
Posted on by

In a Canvas App Form I have a number of fields. When a field is filled, I want another field to change its value to a 'default' value d

depending on what has been changed. How do I control the value of a field from another field's OnChange event?

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    set text in box 2 to something like

     

    defaultVar

     

    and onchange of textbox 1 to something liek 

     

    Set(defaultVar,"Here I am")

     

    Once you type in box one, then click anywhere outside of it, box 2 will display the defaultVar.

  • nickellis74 Profile Picture
    432 Moderator on at

    @TheRobRush 's solution works perfectly, but personally I tend to only go via a variable if it's triggering multiple changes. If you are only using this one scenario, try this in the 'Text' property of the second box:

    If(
     IsBlank(The first text box),
     Blank(),
     "The default text"
    )

     

    Nick

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Yes @nickellis74 's solution is absolutely viable as well, I tend to use a lot of variables haha.

  • sachk1 Profile Picture
    258 on at

    Hi,  

     

    When the end date changes , the email status should be changed. Any suggestions?

     

    Capture.PNG

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Use the default selected items, or default selected property of the dropdown/combobox control.

    have invisible of this page do an UpdateContext({defState:"Default Choice"}), then add another UpdateContext({defState:"New Choice"}) to the OnChange of your datepicker

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard