cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AkshayManke
Continued Contributor
Continued Contributor

Reset Form on Button Click

Hi, This issues seems simple but i am stuck with some errors.

 

I have a screen on which i have added a Gallery (Gallery1) where i have added Set(SelectedItem, ThisItem) in the button. In the Same screen i have added a view form (FormView1), on Item Property i have set 'SelectedItem' so that the button selected item can be visible in the form. 

 

What i need is, the form should be reset when no button is selected. Or Else, as an 2nd option, I have created a button (Reset) so i want that onSelect of the button, the form should be reset. I tried many combinations using Reset, ResetForm but i am getting errors. Can anyone please help me how to do that?

 

Thanks,

Akshay

1 ACCEPTED SOLUTION

Accepted Solutions
rsaikrishna
Dual Super User
Dual Super User

@AkshayManke 

 

Set(SelectedItem, Blank()) on button click.  Blank indicates no item. 

 

Give a try and let me know if this helps or not.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

View solution in original post

2 REPLIES 2
rsaikrishna
Dual Super User
Dual Super User

@AkshayManke 

 

Set(SelectedItem, Blank()) on button click.  Blank indicates no item. 

 

Give a try and let me know if this helps or not.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

View solution in original post

AkshayManke
Continued Contributor
Continued Contributor

Hello @rsaikrishna,

 

I tested it and it is the same i was looking for. Many Thanks for the quick solution. Accepting as solution.

 

Regards,

Akshay

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,179)