at b._handleMethodNotExistError (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:1272803)
at b.execute (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:1271391)
at https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:4:121402
at i (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:97179)
at re._executeIndividualEvent (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:4:121376)
at re._executeEventHandler (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:4:118194)
at Object.execute (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:4:117584)
at w._executeSyncAction (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:623113)
at w._executeSync (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:622840)
at w.executeAction (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:622622)
at t.dispatch (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:627959)
at Object.dispatch (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:900934)
at dispatch (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:627448)
at Object.execute (https://content.powerapps.com/resource/uci-infra-bus/scripts/17.1dcb02d7db3115cf5c29ee4703a12049.js:4:19354)
at w._executeSyncAction (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:623113)
at w._executeSync (https://content.powerapps.com/resource/uci-infra-bus/scripts/app.9bfa873a8412319c44f38e34756503b6.js:14:622840)
Event Name: onchange
Function Name: NameOnChange
Web Resource Name: new_AccountScripts
Solution Name: Active
Publisher Name: DefaultPublishereversourcedev
(
function () {
this.formOnLoad = function (exeuctionContext) {
const firstName = formContext.getAttribute("firstname").getValue();
const lastName = formContext.getAttribute("lastname").getValue();
const middleName = formContext.getAttribute("middlename").getValue();
const nameRegex = /^[a-zA-Z]+$/;
let isValid = true;
formContext.getControl("firstname").clearNotification();
formContext.getControl("lastname").clearNotification();
formContext.getControl("middlename").clearNotification();
if (firstName && !nameRegex.test(firstName)) {
formContext.getControl("firstname").setNotification("First Name contains invalid characters");
isValid = false;
}
if (lastName && !nameRegex.test(lastName)) {
formContext.getControl("lastname").setNotification("Last Name contains invalid characters");
isValid = false;
}
if (middleName && !nameRegex.test(middleName)) {
formContext.getControl("middlename").setNotification("Middle Name contains invalid characters");
}
if (isValid && isfieldModified) {
formContext.getAttribute("eve_fieldmodified").setValue(new Date());
}
},
}
)