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 add editable te...
Power Apps
Answered

How to add editable text inputs to gallery items?

(0) ShareShare
ReportReport
Posted on by 4

I'm new to power apps.

 

I'm trying to create a gallery connected to a data table, where each gallery item has 2 children: 

  • a date
  • a variable height, word-wrap, editable text field

Edits to the text box would get written back to the data source.

 

I found this:
Solved: How to update values of text inputs in gallery for... - Power Platform Community (microsoft.com)

 

I've added a text box to the gallery item, but not sure how to:

  • write the changes back to the data source
  • have a variable size text box to automatically accommodate multi-line

 

Thanks

Categories:
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @ctung74 ,

     

    Check https://youtu.be/8I0Pt_8I6k8 & https://youtu.be/vRn7br2OaxE 

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @ctung74,

    Based on the issue that you mentioned, do you want to write the changed data within the Text input to data source?

    Could you please share a bit more about the scenario?

    If you only want to edit the existing data, please try as below:

    Set the Default property of the Text input as below.

    ThisItem.ColumnName

    Set the OnChange property of the Text input as below:

    Patch(DataTable,ThisItem,{ColumnName:TextInput1.Text})

    If you want the Text input to be automatically accommodate multi-line, you could set the Mode property as below:

    1). Insert a Label covering on the Text input control

    2). Set the following property of the Label as below:

    AutoHeight:true
    Text:TextInput1.Text

    3). Set the Height property of the Text input as below:

    Max(Label5.Height, 70)

    4). Set the Visible property of the Label as below:

    false

    Hope it could help.

    Regards,

    Qi

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard