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 / Overwrite default valu...
Power Apps
Answered

Overwrite default values in a text box with values of a collection

(0) ShareShare
ReportReport
Posted on by 22

Hello everyone

 

In a SharePoint form, I want to overwrite the default values in a text field (Parent.Default) with the values from a collection as soon as checkboxes are clicked in a gallery.

 

The collection is created when the checkboxes (multiple choice) are clicked by using the following command:

 

Collect(groupData;ThisItem)

 

The values from a column of this collection are then transferred to the text field:

 

Concat(groupData;UserGroup;Char(13))

 

Bild 2.png

Do I need to make an adjustment to the “Default” setting of the text field so that the values from the SharePoint list are adopted by default, but are then overwritten when the checkboxes are changed?

 

Many thanks for your help.

 

Greetings
Andreas

 

Categories:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Flowuser8 ,

     

    You can set a variable to check if check box has been selected.

    OnVisible of Screen.

    Set(var,false)

    OnSelect of CheckBox.

    Set(var,true)

    Default of Label.

    If(var,Concat(groupData;UserGroup;Char(13)),Parent.Default)

     

     

    Best regards,

    Rimmon

  • Flowuser8 Profile Picture
    22 on at

    Hi Rimmon

     

    Thank you very much for your help. It works perfectly!

     

    May I ask you something else?
    How can I make sure that the checkboxes are no longer selected the next time I open the window? They should be cleard when the form is closed. Thank you very much.

     

    Best regards,

    Andreas

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

    Hi @Flowuser8 ,

     

    You can refer to my answer in this post which has similar question.

    Multi-Select Checkbox Not clearing in PowerApps Fo... - Power Platform Community (microsoft.com)

     

    ———————————————————————————————————————————————————

    If my answer helps you solve the problem, please accept it as a solution.😀

    If you have another problem, please post it in a new post.🤗

     

    Best regards,

    Rimmon

  • Flowuser8 Profile Picture
    22 on at

    Sorry, I had not seen this post. Thank you very much for your help!

     

    Have a nice day! 😊

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
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard