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 / Renaming an Object in ...
Power Apps
Answered

Renaming an Object in a DataCard Breaks "Hidden" Properties

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a canvas app within which I have a form that contains numerous fields; DataCards containing DatePickers.  I wanted to rename the DatePicker objects to something that would be more memorable than DateValue1_2, so I used the "rename" menu option that appears when you right-click on an object within a DataCard.  Considering that I had not added or used the field I am renaming anywhere in the current form, I assumed everything would be fine.  Nope.  Not only did the rename function NOT change the object name everywhere it was referenced within the DataCard -- all properties that were set by default and not altered by me -- it apparently failed to update the field name within properties that I can't even see/touch within the PowerApps field-editing UI.  

 

Those four "hidden" properties are:  PressedBorderColor, Hoverfill, PressedFill, and HoverBorderColor.  

 

I renamed the DatePicker back to what it was originally named, but those four properties are still reporting the same error: 

    Invalid use of "." <fieldname>.<HiddenProperty>.

 

How can I fix these errors if I can't touch those properties?  I suppose I am going to have to delete the offending DataCard from the form and re-add the field, but there's got to be a better way..AND...why is renaming a field such a pain???  

 

ErrorsInHiddenProperties.png

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @Anonymous ,

    Firstly let me assure you that you can certainly rename any object, as long as

    1. The name is not somewhere else on an object in the app
    2. It is not a name used somewhere else, particularly a data field name. It will generally let you do this, but causes chaos at times.

    It is the second one here I believe you have done (easily fixed however). If you rename the control to the same name as the value it holds, PowerApps has a bit of a spasm and says “don’t be silly, a field value has no Color.”

    To fix, rename the control to something else (my renaming of data controls are simply the field name and the first letter of the screen name - makes the very easy to remember when referencing).

    Then go to the four values (easiest way is to click the little red x) and change the field name in there to the new one you have created. Once fixed, the x will go away.

    BTW I know this well for doing it at too regular intervals . . . 

     

    Please click and accept as Solution if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yeah, it looks like I had been renaming the field to something that already existed somewhere else.  I've tried several other similar renames this morning and they're all behaving properly.

     

    Details.  Details. Details.

     

    Thanks!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard