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 Platform Community / Forums / Power Apps / DataCardKey for ID doe...
Power Apps
Answered

DataCardKey for ID doesn't appear in the published App

(0) ShareShare
ReportReport
Posted on by

Hi,

 

In my app, I have a screen with a display form, the goal of this display form is to print the informations of a item of a SP List (but no problem with that).

 

Like a title, I want to show the ID of the item.

 

No problem if I preview the App in PowerApps studio:

raks_0-1670604352352.png

But when I publish the app, the datacardkey disappear:

raks_1-1670604376508.png

 

I have published the app multiple times but always no datacardkey for the ID. For the other fields, sometimes, the datacardkey disappears also. I don't really understand why?

 

Have you an idea?

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,816 Super User 2026 Season 1 on at

    @raks 

     

    Add a label inside of the gallery and in text Property place Parent.ID or ThisItem.ID should work.

     

     

     

  • raks Profile Picture
    on at

    @SebS 

    I don't understand what you mean because I don't have a gallery in this screen, only a display form.

     

    If you look to my captures, you see that the ID is showing, the problem is with the title for ID (datacardkey)

  • SebS Profile Picture
    4,816 Super User 2026 Season 1 on at

    @raks 

     

    Sorry it's me 😛 for some stupid reason I was thinking about gallery 🙂

     

    Click on the form than right side in the menu pick edit fields there will be add field button than pick ID

     

     

    SebS_0-1670605675820.png

     

    Make it only visible in view mode

     

    in Visible property place IF(DisplayMode.View,true,false)

     

     

  • raks Profile Picture
    on at

    Like that?

    raks_0-1670611925652.png

    It's still the same situation. But the value was "true" before so I don't understand what it can change.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @raks 

    What is the display mode of the card containing DataCardKey74?  Make sure it is DisplayMode.View and that DataCardKey74 DisplayMode is Parent.DisplayMode=View

  • SebS Profile Picture
    4,816 Super User 2026 Season 1 on at

    @raks 

     

    Like below, what that will do ID field will only show when on view mode and when the user trying to Edit the form it will be invisible same for new form

     

    If(Parent.DisplayMode.View,true,false)

     

     

  • raks Profile Picture
    on at

    @Drrickryp 

    It's Edit, I try with Parent.DisplayMode that is View and also force with View but still not visible.

  • raks Profile Picture
    on at

    @SebS 

    User will not try to edit the form because it's a display form. The goal is only to show the information of an item and print it.

  • SebS Profile Picture
    4,816 Super User 2026 Season 1 on at

    @raks 

     

    In that case, leave the Visible Property Default Parent.DisplayMode

  • SebS Profile Picture
    4,816 Super User 2026 Season 1 on at

    @raks 

     

    You should see:

     

    SebS_0-1670703806658.png

     

    Make sure the right DataCard have a Text property Set Up to Parent.Default

     

    SebS_1-1670704026115.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard