cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Force field to become blank based on another field's value

Hi All,

 

Please refer this screenshot below. 

I want the field Published to stay empty if field Report Type = Data Extract.

Default formula of published field is shown below, but the issue is that it keeps the old value, do i also need to use RESET along with DEFAULT to achieve this?

Wouldn't it be duplicating efforts and inefficient?

GauravG_0-1611509080503.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
mdevaney
Super User
Super User

@Anonymous 
Change the Default property of the Published dropdown to this code.  The dropdown will now show as blank when the control is reset.

Blank()

 

Then use this code in the OnChange property of Report type to conditionally reset the Published dropdown when the value selected is 'Data Extract'.

If(Self.Selected.Value="Data Extract", Reset(Dropdown_Published))



---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Anonymous
Not applicable

@mdevaney Your suggestion worked well for a single field.

For multiple fields, i changed the RESET property to respective fields to true when Report Type is Data Extract using IF condition. Thanks

View solution in original post

4 REPLIES 4
mdevaney
Super User
Super User

@Anonymous 
Change the Default property of the Published dropdown to this code.  The dropdown will now show as blank when the control is reset.

Blank()

 

Then use this code in the OnChange property of Report type to conditionally reset the Published dropdown when the value selected is 'Data Extract'.

If(Self.Selected.Value="Data Extract", Reset(Dropdown_Published))



---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Anonymous
Not applicable

@mdevaney Thanks, it did work.

Can you please confirm if this would work even for controls that are text boxes and date pickers and not just combo box (this Published field was a combo box)?

Anonymous
Not applicable

@mdevaney It did not work for another field "Current Report Owner". This field searched employees across AD. and still shows employee name despite default being blank and reset set as advised on this field

GauravG_0-1611511525122.png

 

Anonymous
Not applicable

@mdevaney Your suggestion worked well for a single field.

For multiple fields, i changed the RESET property to respective fields to true when Report Type is Data Extract using IF condition. Thanks

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,614)