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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (3,218)