[rt-users] Validation of Custom Fields with Custom Code

Stefan Rein sr at ilk.net
Fri Nov 22 14:50:19 EST 2013


Hello,

I would like to validate a custom fields with my own custom code (RT 4.0.7).

I saw the code in html/Elements/ValidateCustomFields, but there is no
callback there to implement additional code.

I'm able to write an error message besides my Custom Field (ID 2) in a
Callback "Modify.html/Default":

$m->notes( ('InvalidField-2') => $my_msg );

But how can I refuse the change of the custom field?

Thannks for anwer.
Steffi.

-- 
   Stefan Rein, mailto: sr at ilk.net
   ILK Internet GmbH, Am Sandfeld 15, D-76149 Karlsruhe
   Tel. +49 (0) 721 9100-0, Fax -191, http://www.ilk.net
   Geschaeftsfuehrer: Matthias Felger, AG Mannheim, HRB 107037



More information about the rt-users mailing list