Weaver ecology8 secondary development - on form submission process check

Weaver process has had a form to submit verification method, Weaver is reserved for the convenience of developers encountered some can not resolve the incident. This method is:

checkCustomize = function() {
             return false;
        
    });

The method can be written in the judgment of an object, if they meet on  return true;

Otherwise return false; not to submit.

Form the beginning of the development process, a lot of places use this method to submit the check, this time to note:

1. Some processes form, you just wrote this method, and click on the submit button, this function executes the method, after the execution will check field template set required.

2. There are processes form, you just wrote this method, and click on the submit button, this method will not be executed, you need to put all the required fields in the form template filled out after submitting to perform this method .

There was a time encounter this problem, that is the code fails, back through a variety of mining pit, only to find no problem with this method, but in a different order execution.

 

 

Guess you like

Origin www.cnblogs.com/qingseyanyu/p/12059484.html