Hello Developers,
as already mentioned here Framework::refresh_opener, is it possible to refresh the parent pop up window instead of the main app window?, I placed a nextmatch widget on an edit Pop up. While the nextmatch widget is behaving correctly, I now noticed that I’ m not able to submit the edit form any more. Pressing on the save or apply button just does nothing at all… (no js error in the browser, nothing in the server log…)
After some trial and error a noticed that if I add the following
onclick="widget.getInstanceManager().submit(‘button[apply]’,false,true);
to the apply button, then the form submit works again when pressing apply button, but the form does not validate i.e. needed fields…
in the the code https://github.com/EGroupware/egroupware/blob/47c5a25841d17839c6261169272ddb0b3482cdf1/api/js/etemplate/etemplate2.js#L731 :
/**
- Submit form via ajax
-
-
@param {(et2_button|string)} button button widget or string with id
-
@param {boolean|string} async true: do an asynchronious submit, string: spinner message (please wait…)
- default is asynchronoush with message
-
@param {boolean} no_validation - Do not do individual widget validation, just submit their current values
-
@param {et2_widget|undefined} _container container to submit, default whole template
-
@return {boolean} true if submit was send, false if eg. validation stoped submit
*/
etemplate2.prototype.submit = function(button, async, no_validation, _container)
{
I read that setting the third parameter ( no_validation - Do not do individual widget validation, just submit their current values) to false should enable validation… so i tried:
onclick="widget.getInstanceManager().submit(‘button[apply]’,false,false);
But then again no submit takes place…!?
I hope you can help me on this !
Thank you in advance
Alex