Expand my Community achievements bar.

problem: how to dynamically change the nullTest (from error to disabled)

Avatar

Former Community Member
hi,all



I just want to do this:



if I choose one filed ,then the other field become required.



and if I delete the content in the field,the other filed becomes optional.



And I just add the script in change method:



if(Begda.value != "" && Begda.value != null)

Endda.validate.nullTest = "error";

else

Endda.validate.nullTest = "disabled";



And the first is normal,I can chage the field to required.



But when I delete the content,it just stays required.



So how should I modify this?



Best Regards



delma
0 Replies