[Vtigercrm-developers] Would be nice to

Alan Lord alanslists at gmail.com
Wed Feb 19 11:03:58 GMT 2014


On 19/02/14 10:30, Arnold den Boer wrote:
> Hi, It would ben ice tob e  able to change field colors on a event:

This could be done with a bit of javascript I should think.

I've just about finished extending a little JSValidation module [1] 
originally from "David V" (See email on this list 05/07/2013) so it 
allows you to write arbitrary validation rules for fields in either Edit 
or DetailViews without needing to hack vtiger at all (for 5.4.0).

This concept could - I should think - be readily extended to allow 
custom Javascript functions to be called to update field colours or 
whatever else you wanted to do on the DOM.

Have fun.

Al

[1] http://paste.ubuntu.com/6959344/
(This is the Javascript file that handles overriding vtiger's default 
validation routines - it's still a bit rough and ready but seems to work OK)





More information about the vtigercrm-developers mailing list