Domanda

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?

È stato utile?

Soluzione

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.

Altri suggerimenti

Here is an example:

Button.Visible = !IsBlank(SearchBox.Text)

! means Not in the formula.

enter image description here

Reference: IsBlank.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top