Show/Hide a button after searching in a textbox
-
20-02-2021 - |
質問
I have a scenario where user first need to search the existing question before adding a new question.
In PowerApps, I have added a text input column with search function. I am looking for a way to show and hide a new question button if the user has searched in the text box.
Can anyone help me with this?
解決
If you want to hide the button control if user has searched using text box then use below solution:
Set the Visible property of button control to:
If(IsBlank(TextBox1.Text), true, false)
OR simply:
IsBlank(TextBox1.Text)
Replace TextBox1
with the name of your textbox control.
他のヒント
Here is an example:
Button.Visible = !IsBlank(SearchBox.Text)
!
means Not
in the formula.
Reference: IsBlank.
所属していません sharepoint.stackexchange