is ccmValidateBlockForm still working ?

Permalink
I am having some hard time to figure out, but it seems that ccmValidateBlockForm is gone too, the only remaining I found in the 5.7 code seems to be legacy code (that needs update), and nowhere else in the core …

What is the new way to call some js on block edit/add form submit event?

 
goutnet replied on at Permalink Reply
So far the best I found is to hijack the click event of the target hidden button with something like this

$('#ccm-form-submit-button').click(function(e){  
// do my stuffs;
if (something_goes_wrong) e.bubbles = false; 
} )


but with this way, the old ccm_addError logic does not work any more (or more likely you'll have to handle the message show yourself ...).

any better way ?
goutnet replied on at Permalink Reply
I just checked the form block shipped with the core, that should embbed some form validation, but it seems that one is broken too …

Should I open a github issue here ?
goutnet replied on at Permalink Best Answer Reply
MrKDilkington replied on at Permalink Reply
MrKDilkington
Are there any updates on the ccmValidateBlockForm replacements?
andrew replied on at Permalink Reply
andrew
Not yet, but we have an open issue on it that could use some discussion:

https://github.com/concrete5/concrete5-5.7.0/issues/1099#issuecommen...