Hi,
I am developing a feature to insert a new button in the âedit viewâ of the module Calls.
I created the file /custom/modules/Calls/metadata/editviewdefs.php and added the button in:
$viewdefs [âCallsâ][âEditViewâ][âtemplateMetaâ][âformâ][âbuttonsâ]
4 =>
array(
'customCode' => '<input title="{$MOD.LBL_OPEN_MEETING_BUTTON_TITLE}"
id="SAVE_AND_OPEN_MEETING"
class="button"
onclick="console.log(SUGAR);
SUGAR.calls.fill_invitees();
document.EditView.action.value=\'Save\';
document.EditView.return_action.value=\'EditView\';
formSubmitCheck();"
type="button"
name="button"
value="{$MOD.LBL_OPEN_MEETING_BUTTON_TITLE}">'
)
Unfortunately the documentation regarding metadata is not very detailed⌠(It would be useful to have documentation on the Javascript object âSUGARâ)
The new button can be seen but I donât know how to add the save and open function of a new record âMeetingâ always in âedit viewââŚ
Any solutions?
Thanks in advance