cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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.
Highlighted
Helper II
Helper II

Re: collect a form

Is there a way to collect a form? 

Highlighted
Community Support
Community Support

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,542)