Show/Hide a button after searching in a textbox
-
20-02-2021 - |
Pergunta
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?
Solução
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.
Outras dicas
Here is an example:
Button.Visible = !IsBlank(SearchBox.Text)
!
means Not
in the formula.
Reference: IsBlank.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange