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 / Copy selected data fro...
Power Apps
Answered

Copy selected data from gallery to form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

I have a copy button in the gallery where I have set sets.

OgOrowy_0-1667325438428.png

 

OnSelect ->

et(N_Dzial, Text(ThisItem.Dzial.Value));
Set(N_Nazwisko, Text(ThisItem.Nazwisko));
Set(N_ulica, Text(ThisItem.Ulica));
Set(N_kodpocztowy, Text(ThisItem.'Kod pocztowy'));
Set(N_miejscowosc, Text(ThisItem.Miejscowość));
Set(N_typlistu, Text(ThisItem.'Typ listu'.Value));
Set(N_imie, Text(ThisItem.Imie));
NewForm(Form11)

 

The button substitutes the data into the form

OgOrowy_1-1667325490494.png

 

 

DefaultSelectedItems ->  [N_Dzial]

Default  -> N_imie

OgOrowy_3-1667325764201.png

 

 

Unfortunately, after selecting the add button, it does not reset the form itself

OgOrowy_2-1667325543633.png

 

In the button I have set the formula for  OnSelect -> SubmitForm(Form11); Navigate(Sukces); NewForm(Form11). 

I tried adding ResetForm(Form11) also does not work.

 

Even when trying to enter the form through the main menu also the setting does not reset

 

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

    @Anonymous 

    Never chain commands after SubmitForm().  They should be placed in the OnSuccess property of the form.  These commands may not execute in series and you don't want them to execute at all if the form is not successfully submitted. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for your valuable comment I have added Navigate(success); Newform(form11) to OnSuccess. I will try to pay attention to it.

    Unfortunately, they do not help to solve my problem

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have a solution in form11 -> OnSuccess->


    Navigate(Success);
    ResetForm(Form11);
    Set(N_Division, "");
    Set(N_Name, "");
    Set(N_Street, "");
    Set(N_postcode, "");
    Set(N_location, "");
    Set(N_typelist, "");
    Set(N_name, "");

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard