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 / change a specific colu...
Power Apps
Answered

change a specific column value of the galley chosen item  with default expression

(0) ShareShare
ReportReport
Posted on by 140

Hi

In my app i need to make the option for the user change a specific column value of the galley chosen item  

on the other hand the default value to be:

"Trim(part1&" "&part2&" "&part3)"

1. I choose text input (to make it possible to write an expression in the default)

  default: Trim(part1&" "&part2&" "&part3).

2. Save button Patch function to save the new value that the user choose

 

it is not working 

how can i do it?

 

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Hanan-khamissy ,

     

    Usually, we use Trim to remove spaces between characters, and Concat to concatate multiple characters, related reference documentation:

    Trim and TrimEnds functions in Power Apps - Power Platform | Microsoft Learn

    Concat and Concatenate functions in Power Apps - Power Platform | Microsoft Learn

     

    If you are not too proficient in the use of functions, you can also provide more details for me.

    I hope you can tell me what you are using "Trim(part1&" "&part2&" "&part3)" for?

    In addition, I would like you to provide the patch formula.

    Of course, it would be better if there were some screenshots.

     

     

    Best regards,

    Rimmon Li

  • Hanan-khamissy Profile Picture
    140 on at

    In this form in the image  in the "Perfect name " Card i want to be as default 1 + 2 +3 but also if the user want to change he can change it and to save the edited value (Submitform) 

    Hanankhamissy_0-1697821172619.png

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Hanan-khamissy ,

     

    I assume 1,2,3 in label controls and 123 in text input control.

    Please try this:

    Set the default of text input:

    Concatenate(Label1.Text," ",Label2.Text," ",Label3.Text)

    vmengmlimsft_0-1698027360842.png

    Best regards,

    Rimmon

  • Hanan-khamissy Profile Picture
    140 on at

    1)If I set it as the default what's happen when the user edit the default value?

       in the next time we enter the app is the edit value will appear?

    2) the "123" box is part of the same form of the "1" & "2" & "3" boxes (one of the cards

        is it ok or i should make the "123" box as input text and then save the user input with Patch function?

     

  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Hanan-khamissy ,

     

    If the user edits, of course, the content edited by the user is displayed.

    User edits disappear when they re-enter the app, but not during screen switching.

    In general, you can use the patch function to update the user-edited value to the original record, provided that the data types are consistent.

     

    Best regards,

    Rimmon Li

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard