Hi,
I am dynamically loading form elements as per the example “11_dyn_loading.html”. However, how do I add validation/rules that are also dynamically loaded?
Thanks
Hi,
I am dynamically loading form elements as per the example “11_dyn_loading.html”. However, how do I add validation/rules that are also dynamically loaded?
Thanks
Hi,
You can use “define” method to set “rules” dynamically:
$$("myform").define("rules", {
name:dhx.rules.isNotEmpty,
age:dhx.rules.isNumber
});