User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:devel:corebos_validation [2016/09/10 02:01]
127.0.0.1 external edit
en:devel:corebos_validation [2017/05/28 20:53] (current)
joebordes
Line 1: Line 1:
 ====== How to add custom validations to your module ====== ====== How to add custom validations to your module ======
 +
 +<WRAP center round alert 80%>
 +This method has been superseded by the [[en:​adminmanual:​businessmappings:​validations|Validations Bussiness Map]]. Although the system described here is still valid and working (for backward compatibility),​ it is recommended to use the more flexible and powerful validation business mapping.
 +**Implemented as of 2017-05-30.**
 +</​WRAP>​
 +
  
 Each field in a module has two native types of validation: Each field in a module has two native types of validation:
  
-  * data type validation: when you define a field on a module you indicate the type that it is; integer, string, currency, date, ...  So when you are editing a record with that field on screen coreBOS will automatically ​insure ​that the value introduced is of the correct type.+  * data type validation: when you define a field on a module you indicate the type that it is; integer, string, currency, date, ...  So when you are editing a record with that field on screen coreBOS will automatically ​ensure ​that the value introduced is of the correct type.
   * mandatory validation: you can indicate which fields must contain a value, in other words, they cannot be left empty   * mandatory validation: you can indicate which fields must contain a value, in other words, they cannot be left empty
  
Line 9: Line 15:
  
   * no accountname duplicates   * no accountname duplicates
-  * mandatory email on contact if portail ​user checked+  * mandatory email on contact if portal ​user checked
   * contact birthday   * contact birthday
   * sales order recurring settings   * sales order recurring settings