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.

enter image description here

Reference: IsBlank.

许可以下: CC-BY-SA归因
scroll top