Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

Here is an example:

Button.Visible = !IsBlank(SearchBox.Text)

! means Not in the formula.

enter image description here

Reference: IsBlank.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top