[Vtigercrm-developers] How to detect field value change on Edit View Save?

nilay khatri nilay.spartan at gmail.com
Wed Apr 4 16:10:50 GMT 2018


For the same scenario, for the required field on page load we store the
values in a static cache/array/object. And then on presaveevent compare the
form values with that in cache.

On Wed, Apr 4, 2018 at 6:14 PM, Alan Lord <alanslists at gmail.com> wrote:

> I have a custom "validation" function. This is an ajax routine.
>
> In Detail View (and Summary) I can stop the default event
> "PreAjaxSaveEvent", perform my checks and do what is necessary.
>
> In Edit View though I am struggling to determine if a field has had its
> value altered before the user clicks the save button. I can trap the event
> "Vtiger_Edit_Js.recordPresaveEvent" OK but is there any way I can
> determine if a field's value has changed or not?
>
> TIA
>
> Al
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20180404/a3e067c0/attachment.html>


More information about the vtigercrm-developers mailing list