Custom Code - How to return a value back into UI Builder object

Hi, Firstly thank you for adding the Custom code feature.

I have managed to load a tinyMCE editor via the custom code feature within a form element. I am also able to capture the content in the editor into a variable within the custom code, when clicking the submit button.

How can I access the contents of this variable within UI builder? I am trying to return the variable, but when I try to access the form data it does not seem to be defined.

Thanks


Hello @Farid

You should set content data to pageData
Like this


Regards,
Viktor

Thank you. I can successfully access the myContent variable in UI builder, but I am still having to use ‘bl-text:first child’ to access the element, as the get property solution you suggested is returning an empty string?

Thanks