This prevents change events from firing, but then re-enables them:
var basic = form.getForm(); basic.getFields().each(function(item, index, length){ item.suspendCheckChange++; }); basic.loadRecord(myRecord); basic.getFields().each(function(item, index, length){ item.suspendCheckChange--; });
Thank you!! I couldn't find how to do this anywhere!
ReplyDeleteThis saved my butt! Thanks
ReplyDeleteGreat, thanks a lot.
ReplyDeleteBrilliant - just what I was looking for.
ReplyDeleteCheers!
Great it worked. I needed it for just one field.
ReplyDeletevar basic = form.getForm();
var field = basic.findField('name_of_field');
field.suspendCheckChange++;
basic.loadRecord(myRecord);
field.suspendCheckChange--;
Wow, I couldn't thank you more, you are my angel
ReplyDeleteI love the way you write and share your niche! Very interesting and different! Keep it coming! www.verifications.io
ReplyDelete