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.

View solution in original post

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (28,360)