Hi,
Below sample code, which will help you to understand how to check whether there exist incomplete mandatory fileds(including hidden) in a WI and how to update the mandatory condition for those in runtime.
//shows false, when there are incomplete mandatory fileds.
alert("before:"+RMPApplication.validate());
//deregister the mandatory field condition
RMPApplication.deregisterRequiredVariable("text1",true);
//shows true, when there are no incomplete mandatory fileds.
alert("after:"+RMPApplication.validate());
Regards,
Murali