A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hi,
What type do you store in the database? Is it a JSON serialized string? If you add a method called _setValueAttr like this, what result do you get in the console? Still undefined?
_setValueAttr: function(val) {
this._set("value", val);
window.console && console.log(val);
}
EDIT: I wrote this comment before I saw your answer.
Hi,
I've created a custom property. After upgrade to EPiServer CMS 9.2+ (I don't remember which version), this.value inside postCreate function returns undefined.
This is the code:
Everything works fine when I try to create a page / block that contains that property. But as soon as I press the publish button (or open one of the published pages / blocks that contain that property), this.value becomes undefined.
Property value is successfully saved in the database. I can access in it from the view by calling Model.Current.MyProperty.MyField, but it's always empty in the editor.
EPiServer 9.3.3.0
Any help would be greatly appreciated!