Skip property if empty: Cannot instantiate a DynamicNode without an id
I have a section in my site where I want to render out all it's children (which are of the same doctype and include numerous properties) but I would like to 'skip' a property if it's empty, specifically an unused Content Picker, as this prevents the script from rendering if nothing is selected. I get the error message "Cannot instantiate a DynamicNode without an id" when debugging. Here's a snippet of my code:
Skip property if empty: Cannot instantiate a DynamicNode without an id
I have a section in my site where I want to render out all it's children (which are of the same doctype and include numerous properties) but I would like to 'skip' a property if it's empty, specifically an unused Content Picker, as this prevents the script from rendering if nothing is selected. I get the error message "Cannot instantiate a DynamicNode without an id" when debugging. Here's a snippet of my code:
is working on a reply...