Hi,
Can anyone please help me as to how I can stop the record from being saved either from front end js or php. I am looking for a functionality similar to 'Record not modified'.
Description:
My code for api is triggered in 'before:save' condition of record and returns a ID back to CRM. I am checking if the ID is valid and cancel save if it is not valid.
I have tried triggering the 'cancel:save' event, tried this.ischanged = false, throw an error from js(this stops the execution but not the desired result as mentioned earlier), throw an exception from php.
Thanks in advance for any help on this.
Can anyone please help me as to how I can stop the record from being saved either from front end js or php. I am looking for a functionality similar to 'Record not modified'.
Description:
My code for api is triggered in 'before:save' condition of record and returns a ID back to CRM. I am checking if the ID is valid and cancel save if it is not valid.
I have tried triggering the 'cancel:save' event, tried this.ischanged = false, throw an error from js(this stops the execution but not the desired result as mentioned earlier), throw an exception from php.
Thanks in advance for any help on this.
Comment