- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
You are checking for the Instance Manager count as 0. But ideally it will be 1 if you have any subform exists on the form whether visible or hidden.
Second, you are trying to access the Instance Manager of the reqField in your code (_reqField). May be you need to correct it.
Try the following code to fix your issue.
if (page2.mainSub._branch2.count == 1){
page2.mainSub._branch2.reqField.mandatory = "disabled";
}
Thanks
Srini
Views
Replies
0 Likes
Total Likes