web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

No item display

(2) ShareShare
ReportReport
Posted on by 190
Dear all,
 
I am building an App.
 
Power Apps has two data sources, SharePoint List 1 and SharePoint List 2. The two SharePoint lists are associated via a Lookup column. Currently, the gallery uses SharePoint List 1 as its data source. When an item in the gallery is selected, if there is a related ID in SharePoint List 2 (which is the data source for Form3), the radio button in Form3 should display the corresponding value. If the item selected in the gallery has no associated ID in SharePoint List 2, the radio button in Form3 should still be displayed with a default value of 0.  Now ,if there is no relevant item in sharepoint list2 ,the Radio in Form3 doesn't display. and show “No item display”
 
Would you please help on it?
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    69,556 Most Valuable Professional on at
    The easiest way to do that would be to put a rectangle over radio buttons on the form and then set its Visible property to only show if no matching record is found in list 2.  You can do that using the isEmpty() function around the same lookup you are using to populate the form.  Add text to the rectangle, or use a label, to add the "no Item Display" message.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Verified answer
    11manish Profile Picture
    3,333 on at
    This is a classic Form binding issue in Microsoft Power Apps 
    The problem is not the radio control — it’s that Form3 has no record to bind to, so it shows “No item to display”.
     
    Root Cause
    • Gallery → bound to SharePoint List 1
    • Form3 → bound to SharePoint List 2
    When no related record exists in List 2:
    • Item = Blank()
    • Form goes into no record state
    • Controls (including Radio) don’t render
    Goal
    Even if no record exists in List 2 →
    • Form should still show
    • Radio should default to 0
    • Solution Options
     Option 1: Use Defaults() when no record exists (Best Practice)
    •  Set Form3.Item
    If(
        IsBlank(
            LookUp(List2, LookupID.Id = Gal_1.Selected.ID)
        ),
        Defaults(List2),
        LookUp(List2, LookupID.Id = Gal_1.Selected.ID)
    )
     
    ✔ Ensures form ALWAYS has a record
    ✔ Prevents “No item to display”
     
    Set Form Mode Dynamically
    • Form3.DefaultMode
    If(
        IsBlank(LookUp(List2, LookupID.Id = Gal_1.Selected.ID)),
        FormMode.New,
        FormMode.Edit
    )
     
    ✔ New mode → no record → still renders controls
     
    Set Default value in Radio
    Inside Radio control:
     
    If(
        IsBlank(Form3.Item.ID),
        0,
        ThisItem.YourField
    )
     
    OR better (using variable):
     
    Coalesce(ThisItem.YourField, 0)

    Thanks
    Manish
     
     

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard