# Property Defaults?

**URL:** <https://forums.realmacsoftware.com/t/property-defaults/47077>\
**Category:** Elements API\
**Created:** [April 8, 2025, 4:52pm UTC](https://forums.realmacsoftware.com/t/property-defaults/47077 "2025-04-08T16:52:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [April 8, 2025, 4:52pm UTC](https://forums.realmacsoftware.com/t/property-defaults/47077/1 "2025-04-08T16:52:38Z")

</div>

I have added a few new properties to one of my DevPack Components.  
When I save the properties in the Nova Editor, Elements updates the Component in the property inspector in the Editor.

As I haven’t yet set the property, I would expect that the default would be applied to it if it is used. This doesn’t appear to be the case which I think will cause confusion - it is confusing me! 😉

I think elements should apply the default if the property hasn’t been set. If it doesn’t, I am struggling to see what relevance the default has or how it is meant to work?

I seem to recall that this might have been raised before as issue but I can’t find any post about it (at the moment).

---

<div class="post-metadata">

**Author:** ![Doobox](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/doobox/32/32373_2.png) [@Doobox](https://forums.realmacsoftware.com/u/Doobox)\
**Post date:** [April 8, 2025, 6:23pm UTC](https://forums.realmacsoftware.com/t/property-defaults/47077/2 "2025-04-08T18:23:59Z")

</div>

You need to delete the instance of the component and drag a new one into the page for the default to be set, after adding the property in Nova. I guess the default is set during the action of dragging an instance into the page.

---

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [April 8, 2025, 7:55pm UTC](https://forums.realmacsoftware.com/t/property-defaults/47077/3 "2025-04-08T19:55:44Z")

</div>

OK, I created a new page and dragged the component onto the page; the defaults aren’t set.  
If I select a different value, then reselect the default value, it is set.

A way round this, that I use on a Property Blog Id which is a select, is to have the default value displayed as ‘Set Blog Id’ then the selections to be chosen. That’s OK on a select but other property types are not so easy. Ideally I wouldn’t want to have that setting and just have ‘Blog A’ selected as the default.

I think this is a bug or I am doing something wrong? ☹

---

<div class="post-metadata">

**Author:** ![Doobox](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/doobox/32/32373_2.png) [@Doobox](https://forums.realmacsoftware.com/u/Doobox)\
**Post date:** [April 8, 2025, 8:06pm UTC](https://forums.realmacsoftware.com/t/property-defaults/47077/4 "2025-04-08T20:06:35Z")

</div>

check the property json. There is something wrong with it.  
Post the property here if you like.

---

<div class="post-metadata">

**Author:** ![Doobox](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/doobox/32/32373_2.png) [@Doobox](https://forums.realmacsoftware.com/u/Doobox)\
**Post date:** [April 8, 2025, 8:56pm UTC](https://forums.realmacsoftware.com/t/property-defaults/47077/5 "2025-04-08T20:56:06Z")

</div>

> [@logrunner](#):
>
> If I select a different value, then reselect the default value, it is set.

Last time I seen this, I’d spelt the default value differently from the value returned by the one I wanted the default to be.
