K
|
kohle 2/11/2022 |
Hi, go to the tabfolder events , than to the add page and there to the Here you write your validation code, ex. if your validation dont pass then return : $message= "Your error message"; Examples of my code : if($values['Personal_Nr'] != 0 && $values['flg_fremd'] == 1 ){ or Add page in "before add" event : I Check if Social no. already exists in table data. $sql2 = "SELECT count(*) FROM t_emp_user_zusatz WHERE Sozialversicherungsnr = '" . $values['Sozialversicherungsnr'] . "'" ; //if Sozialversicherungsnr exists ..... return true; rgs. |
M
|
mdfaisalpapa author 2/12/2022 |
The above solution is server side validation. I need client side validation using Javascript. |
![]() |
Sergey Kornilov admin 2/16/2022 |
There are multiple options to do so. You can use field events to check individual field values. You can also check beforeSave Javascript event. |