Hi all.
I have a form with two data cards. One data card contains a Dropdown and the other contains an Text Input Field.
If the value selected in the Dropdown equals a Key Term, then the data card containing the Text Input Field is visible
so the user can input info. Otherwise, the data card with the Text Input Field is not visible. The code for this is below
and works great. Everything appears and disappears as it should.
Data Card for Text Input Field : Visible Property
If(
Or(
Dropdown.Selected.Value = "Key Term 1",
Dropdown.Selected.Value = "Key Term 2",
Dropdown.Selected.Value = "Key Term 3"
),
true,
false
)
The issue is this: any info the user types into the Text Input Field remains inside it when the user changes their mind,
chooses a non Key Term in the Dropdown and the data card disappears. When the user submits the form, the
unneeded info submits with the form. I want to clear the Text Input Field when the data card itself is not visible.
I tried doing this using buttons. Button1 resets the Text Input Field. Button2 selects Button1 when the
data card containing the Text Input Field is not visible. The code is below and does not work. Neither button
when the data card disappears.
Button1 : OnSelect Property
Reset(TextInputFieldValue)
Button2 : OnSelect Property
If(DataCardForTextInput.Visible = false, Select(Button1))
How should this be coded so either:
1) A chain reaction occurs (when Text Input Data Card is not visible > Button2 clicks > Button 1 clicks) or
2) A direct action occurs (when Text Input Data Card is not visible > Button 1 clicks)
Please do not answer with Power Automate solutions/flows. The Automate flows I'm already using for this app
takes up to much time to respond and I'd prefer the response time between these buttons to be very very short to
immediate. Any in app solution to clear the text input field when the data card disappears, with or without buttons
is appreciated. Thank you!