cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sanrajbhar
Helper I
Helper I

If Lookup return is false then dont show form

I am showing form records(using lookup) once user will select record from gallery. so it means Gallery dataSource and Form data source is different.

 

It works fine when records found in expected table and show the records.

if not found it show "No item to display"".

 

So i want to know how can we hide this "No item to dsiplay" with custom message. or Any other Better IDEA you have will be Welcome.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @sanrajbhar,

 

Could you please share a bit more about your app's configuration?

 

If you want to hide the "No Item to display" message within your Data form (Edit form or Display form), I have made a test on my side, please take a try with the following workaround:

2.JPG

 

3.JPG

 

4.JPG

 

 

Within the second screen, set the OnVisible property of the screen to following formula:

If(
IsBlank(LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)),
Notify("No Item/record is found within the form data source",NotificationType.Information)
)

On your side, you should type following formula:

If(
IsBlank(LookUp(YourFormDataSource,FilterCondition)),
Notify("No Item/record is found within the form data source",NotificationType.Information)
)

 

Set the Item property of the Display form to following formula:

 

 

LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)

On your side, you should type following:

LookUp(YourFormDataSource,FilterCondition)

 

Set the Visible property of the Display form to following formula:

If(IsBlank(LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)),false,true)

On your side, you should type the following formula:

If(IsBlank(LookUp(YourFormDataSource,FilterCondition)),false,true)

The GIF screenshot as below:Test1.gif

 

 

 

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Meneghino
Community Champion
Community Champion

Use the Visible property of the form to hide it, and Visible property of a new label to show the custom message.

v-xida-msft
Community Support
Community Support

Hi @sanrajbhar,

 

Could you please share a bit more about your app's configuration?

 

If you want to hide the "No Item to display" message within your Data form (Edit form or Display form), I have made a test on my side, please take a try with the following workaround:

2.JPG

 

3.JPG

 

4.JPG

 

 

Within the second screen, set the OnVisible property of the screen to following formula:

If(
IsBlank(LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)),
Notify("No Item/record is found within the form data source",NotificationType.Information)
)

On your side, you should type following formula:

If(
IsBlank(LookUp(YourFormDataSource,FilterCondition)),
Notify("No Item/record is found within the form data source",NotificationType.Information)
)

 

Set the Item property of the Display form to following formula:

 

 

LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)

On your side, you should type following:

LookUp(YourFormDataSource,FilterCondition)

 

Set the Visible property of the Display form to following formula:

If(IsBlank(LookUp('20180907_case9',Owner=Gallery1.Selected.Executor)),false,true)

On your side, you should type the following formula:

If(IsBlank(LookUp(YourFormDataSource,FilterCondition)),false,true)

The GIF screenshot as below:Test1.gif

 

 

 

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,301)