[Solved] Get property value in custom property
l
I'm creating a custom property in Version 13.2.0, and this custom property needs to get the value from another property on the same page, is that possible? All the posts i see seem to tell me to use the 'tabs' in
editorState
, but this doesnt exist in my angularjs. Some context: I'm creating a custom property on a block, this takes a form property that lives on the same page, just under a different tab. I'm using that to get the fields to use in that custom property. Basically, works the same as the form conditions does in Umbraco Forms, but doing this for content off the back of a submitted form. I could call an API endpoint to get it by the property alias, but I dont want to go down that route as I wont be able to get the property unless the user has saved / save and published the page already, so if a user creates the page and sets it up in one go without saving, it wont work.
I have tried
contentEditingHelper.getAllProps(editorState.current);
also
j
There is an example of using the contentResource for something similar in this example: https://docs.umbraco.com/umbraco-cms/extending/content-apps#creating-the-view-and-the-controller I'd imagine blocks would make it a lot more complicated though.
12 Views