I have created two fields in my_custom_module called: start_date_c & end_date_c with date datatype
These fields are not mandatory fields however when i enter data into the leaving_date_c field I would like to make it is not less than join_date_c
I have tried the following:
https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/12522-how-to-validate-start-and-end-date-in-suitecrm
http://sugarmods.co.uk/how-to-add-custom-validation-to-form-fields-in-sugarcrm/
but as i am new to SuiteCRM, i am not able to find positive response. please let me know what i m missing
i have tried the following
in custom\modules\Users\metadata\editview.dfs
i have added the following code under the field array
'displayParams' =>
array (
'javascript' => 'onblur => "checkStatusOption(this)"',
),
and following code in userEditView.js
function checkStatusOption(e) {
alert if leaving date is less than join date}