Property Defaults?

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! :wink:

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).

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.

1 Like

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? :frowning:

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

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.

1 Like