Add error message stripeErrorMessage: { errorCode: ‘ERR_STRIPE’, errorMessage: _(‘Card not created in stripe’).translate() } here we check the condition and if it is not satisfied will throw an error. result.done(function (model) { self.creditcardView = null; console.log(“this inside if result”, model) ProfileModel.getInstance().get(‘creditcards’).add(model, { silent: true });self.setCreditCard({ model: model });console.log(‘newold’, model.ccmemo) var new_temp = model.ccmemo; save_result.resolve(function ()… Continue reading How add a custom error message in Elbrus version
Tag: custom error
Custom Errors
There are two ways to return an error to any specific users/ roles eg: a scenario to restrict access to certain records but cannot take out their permission from the user/ role set up. Use “Return User Error” action in Workflow – whick acts on loading a record (beforeLoad in script terms) In User Event… Continue reading Custom Errors