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 / Name isn't valid. 'Tex...
Power Apps
Answered

Name isn't valid. 'Text' isn't recognized.

(0) ShareShare
ReportReport
Posted on by 18

I am new to Power Apps and trying to create a collection with Products.

I have added a textbox with the name inpProduct.

 

Created a new button Collect with the command Collect(colProducts, {Product: Value(inpProduct.Text)}) or Collect(colProducts, {Product: inpProduct.Text})

But somehow Text is not recognized and does not popup after the .

 

Richard9A_0-1693422881604.png

 

I have followed the step in this tutorial https://www.youtube.com/watch?v=4zM-Oyhpc3U but can't figure what I am doing wrong.

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Richard9A,

     

    .Text is the property that is used for Classic controls. Should you be using Power Apps for Teams or be creating a Custom Page (leveraging the Fluent UI controls), you will need to use .Value

     

    Collect(colProducts, {Product: inpProduct.Value})

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • Rchrd Profile Picture
    18 on at

    Yes did the trick. Thank you.

  • joeflomo Profile Picture
    5 on at

    LaurensM, your solution works and thanks. One question: How will a user know if the Control is "Classic" or "Custom"?

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @joeflomo,

     

    The TextInput control based on the Fluent UI framework will need a .Value reference instead of .Text to get the text value. The 'Classic' controls are the commonly used controls used within the Canvas Editor (browser experience). The browser experience is also receiving new 'Modern' controls based on Fluent UI - where the TextInput needs the .Value suffix. (View the UI difference between both here)

     

    Power Apps for Teams and Custom Pages (Canvas page in a Model-driven App) also use Fluent UI controls. Here the TextBox control will also need a .Value suffix.

     

    I hope this helps!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard