cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
skarthanal
Helper III
Helper III

Reset form if dropdown is blank

How can achieve this?

skarthanal_0-1648578018294.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
EdViegas
Super User
Super User

Assuming your form is called Form1 and using a ComboBox instead of a Drop Down, try adding this code to ComboBox OnChange property 

 

If(
    CountRows(Self.SelectedItems) = 0,
    ResetForm(Form1)
)

 

View solution in original post

2 REPLIES 2
EdViegas
Super User
Super User

Assuming your form is called Form1 and using a ComboBox instead of a Drop Down, try adding this code to ComboBox OnChange property 

 

If(
    CountRows(Self.SelectedItems) = 0,
    ResetForm(Form1)
)

 

skarthanal
Helper III
Helper III

@EdViegas Thank you this worked perfectly!

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (2,618)