When we manually add a validator to a EZFormField, we cannot change the behaviour of it. We have to re-initialize it and re-add it to the form. If we do not want to broke the order of the fields, we have to re-initialize the whole form.
With setValidator method we can change the behaviour of an EZFormField dynamically on certain cases.
When we manually add a validator to a EZFormField, we cannot change the behaviour of it. We have to re-initialize it and re-add it to the form. If we do not want to broke the order of the fields, we have to re-initialize the whole form.
With setValidator method we can change the behaviour of an EZFormField dynamically on certain cases.