I have a component that I’m using within a schema. I’m writing an update script to update a value of the component, but am getting an error message from the editor when the script is executed.
This script code, which takes the existing value and puts it into a ‘debug’ field, works fine:
ctx.data.debug.iv = ctx.data.sections.iv.myguid;
However, when I try to assign a new value I get an error message. The code I’m using to assign the value is:
ctx.data.sections.iv.myguid = “Barton”;
The error message I get is from the editor when I attempt to save the data is:
Any help would be greatly appreciated!