cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
felipewltc
Level: Powered On

collect a form

Hello there, 

 

I tried to collect information from a form, but when I click the button to do it, it did not work, also I tried to reset the values after using the button but it also gives me an error.

Button configuration: 

image.png

Error: 

image.png

Any idea of how I will be able to collect form data? and reset it after I select the button?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: collect a form

Hi @felipewltc ,

 

Form control is connected one record of the data source, so to collect the form I assume that you are trying to collect this record. If my understanding is correct, then please use the formula below to collect this record:

Collect(col1,Gallery1.Selected)

Replace "Gallery1.Selected" with the formula you use in the Item property of this Form control. 

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: collect a form

Hi @felipewltc ,

 

Instead of resetting all the controls inside the Form control, you just need to reset the whole Form control like:

Collect(...,{...});ResetForm(Form1)

Form1 is your form control's name.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
felipewltc
Level: Powered On

Re: collect a form

Is there a way to collect a form? 

Community Support Team
Community Support Team

Re: collect a form

Hi @felipewltc ,

 

Form control is connected one record of the data source, so to collect the form I assume that you are trying to collect this record. If my understanding is correct, then please use the formula below to collect this record:

Collect(col1,Gallery1.Selected)

Replace "Gallery1.Selected" with the formula you use in the Item property of this Form control. 

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,097)