instanceFrame
before calling the handleItemChange
.
The code sample below should allow you to update the value of the field without writing the value to the cache or to the database.
var itemNumberElements = parent.frames["instance"].contentDocument.getElementsByName("item_number");
// Both the parent <div> of the field as well as the <input> we want share the same name,
// so we will loop through them and only update the value of the input
itemNumberElements.forEach(function(node) {
if (node.nodeName === "INPUT") {
node.value = "123";
}
});
Chris
instanceFrame
before calling the handleItemChange
.
The code sample below should allow you to update the value of the field without writing the value to the cache or to the database.
var itemNumberElements = parent.frames["instance"].contentDocument.getElementsByName("item_number");
// Both the parent <div> of the field as well as the <input> we want share the same name,
// so we will loop through them and only update the value of the input
itemNumberElements.forEach(function(node) {
if (node.nodeName === "INPUT") {
node.value = "123";
}
});
Chris