Notifications
Announcements
Hi, I have a gallery tied with textbox and am looking to display empty gallery, when the textbox is blank. I have the below formula, but it gives me error, please advise.
Filter(Search(Contacts,TextInput2.Text,"lastname"),!IsBlank(TextInput2.Text))
Hi @sdnd2000
With( {item: Contacts}, If( IsBlank(TextInput2.Text), Blank(), Search( item, TextInput2.Text, "lastname" ) ) )
Thanks,Stalin - Learn To Illuminate
I have tested and correctly the above code. This is also similar.
With( {item: Contacts}, If( !IsBlank(TextInput2.Text), Search( item, TextInput2.Text, "lastname" ) ) )
Hi, @StalinPonnusamy , thanks for the help, it doesn't work as expected, since there is only on result returned, is it limiting the number of result set?
Shouldn't be. Our requirement is
Case #1
Case #2
Code
With( {item: IssueTracker}, If( !IsBlank(TextSearchBox1.Text), Search( item, TextSearchBox1.Text, "Title" ) ) )
Please share your data source if this not works
Hi @StalinPonnusamy - potentially delegation issue with 'search'?
It shouldn't be. I tested with Dataverse data as well
With( {item: [@Contacts]}, If( !IsBlank(TextSearchBox1.Text), Search( item, TextSearchBox1.Text, "lastname" ) ) )
@StalinPonnusamy
I tested with the below code, and the result is different, not sure why,
Filter(Search(Contacts,Tx_SearchBx.Text,"lastname"),!IsBlank(Tx_SearchBx.Text))
And your code just returns one result,
That's really surprising. Both queries are the same and give the same results for me. That is expected.
Only the difference is no delegation issue when using With Statement.
Hi,
In my case I have two text input fields(number type) in a form. When both text boxes has value the above Billability calculates the value. I have a requirement of when both text boxes is empty the formula should not calculate and should be blank like this( Billability : %). As of now when both text boxes is empty it displays in this way.( Billability : 0 %).
Any help would be greatly appreciated
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268