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 / Text Input Control lac...
Power Apps
Answered

Text Input Control lacks .Text attributes

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear Community,

I am trying to set the text in an TextInput control based on a selection in in a DropDown control.

Everybody writes: that one has to Set a variable to the desired text in the OnSelect of the DropDown control, Notify(TextInput.Text) and bind the TextInput.Text to the variable.

All nice and easy, BUT I can NOT find the .Text attribute of my TextInput controls: not in the drop-down menu with the attributes on the left, not in the attributes on the right. When I type TextInput.Text as a formula, I get an error: Power Apps encountered an internal error trying to evaluate this expression ...

What is going here?

Thanx for your help.

Kind regards,

reinvdo

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

    @Anonymous 

    I think you are l making this more complicated than it needs to be. Make the default property of the textinput control Dropdown.Selected.Value

    You can replace Value with any field in the record chosen in the dropdown.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Dear Drrickryp,

    thanx for your swift answer. 

    I have to calculate the text based upon the selected text in the OnSelect trigger attribute, so unfortunately, your solution does not work for me.

    instead of .Text it is the .Default attribute that guides the text displayed in the TextInput?

    Then why is all official Power Apps documentation (eg https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-text-input) mentioning the .Text attribute of TextInput control? 

    Now I remembered I had a screen where I do the same, but in the particulare screen I wat working on it did not work... now hear this: deleting and re-copying the formula in the .Default attribute of the TextInput solved the problem!

    Microsoft mysteries 😄

    Kind regards,

    reinvdo

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    The TextInput control value is set by the Default property.  The .Text property is available then do refer to the actual value that is in it.

    In other words, if you have your Textinput Default set to "Hi Text", then in other parts of your app you can refer to Textinput.Text and the result will be "Hi Text".  If someone types into the text input control, the the .Text will be whatever they have typed.

     

    Skip the OnSelects in your dropdown and the variables as they will just create confusion in your app.  Keep it simple and put the formula you are using in the OnSelect directing in the Default property of the TextInput control.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Randy,

    thanx for your very clear explanation. Now, it just works!!!

    Kind regards,

    reinvdo

  • JimBingham Profile Picture
    6 on at

    Hello everyone,

     

    The primary data source is my Power Apps application is a SharePoint list.  The fundamental disconnect I am having with many of the replies in this thread is when I set the DEFAULT property of a TEXTINPUT control, via the ONSELECT of a DROPDOWN, it writes (adds or edits) to the SharePoint list column correctly.  However, when I select an existing list item and hit Edit on the list menu the column value in the Power App form is not shown.  

     

    For the READ and DISPLAY of the SharePoint List column value to work correctly the DEFAULT of the TEXTINPUT needs to be Parent.Default and the DEFAULT of the DATACARD needs to be ThisItem.TheNameOftheSPColumn. 

     

    Thanks in advance,

     

    Jim

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard