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

Using Dropdown to Clear Text input Field

Hi All,

 

I have a dropdown X and a text input field Y. Dropdown X has two choices: a and b. I want when the user selects answer choice b, the text input field will erase all of what the user entered. When the user selects answer choice a, the information entered in the text input field will remain. Not sure exactly how to do this, so any help would be appreciated. Just want to know which settings I have to change and which formulas I need to input. Thanks in advance. 

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft
Microsoft

Hi robertwinn,

 

Set TextInputY;

Default property to

varInput

Reset property to

varResetInput

 

Set the DropDownX OnChange property to

If(DropdownX.Selected.Value="a", UpdateContext({varInput: TextInput1.Text}), UpdateContext({varInput: ""}));
UpdateContext({varResetInput: true});
UpdateContext({varResetInput: false})

 

 

Hope this helps,

 

RT

View solution in original post

1 REPLY 1
Microsoft
Microsoft

Hi robertwinn,

 

Set TextInputY;

Default property to

varInput

Reset property to

varResetInput

 

Set the DropDownX OnChange property to

If(DropdownX.Selected.Value="a", UpdateContext({varInput: TextInput1.Text}), UpdateContext({varInput: ""}));
UpdateContext({varResetInput: true});
UpdateContext({varResetInput: false})

 

 

Hope this helps,

 

RT

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (13,910)