Hello everyone,
This problem seems to be due to declaring the save button as a customCode. In editview it is by default declared as follows:
PHP Code:
'buttons' =>
array (
0 => 'SAVE',
1 => 'CANCEL',
),
But as i needed to include a javascript file to be executed onclick "Save", I changed the botton declaration to customCode.
PHP Code:
'buttons' =>
array (
0 =>
array (
'customCode' => '<input id="save" type="submit" value="Save" name="button" onclick="this.form.action.value=\'Save\'; return(add_checks(document.EditView) && check_form(\'EditView\'));"class="button" accesskey="S" title="Save [Alt+S]"/>',
),
1 => 'CANCEL',
),
Now, if anyone knows a better way to call the javascript file, when saving the record, without having to change the "Save" button declaration, please let me know.
Thanks in advance!
Bookmarks