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 Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (5,122)