I have on exit event the script below for a mandatory field to became non mandatory in case there is a value.
My problem is that I have this field in a repeting subform and does not work for the second, third amd so on instances.
How I can make it work for all instances? THANK YOU.
if (Department.rawValue != null)
{Department.mandatory = "disabled";
}
Views
Replies
Total Likes
I don't understand why you're doing this. If a field has a value then the mandatory requirement is fulfilled, why do you see the need to disable the attribute? On the calc if you use this instead of the field name you likely would have more luck but again I don't understand why you're do this
Views
Replies
Total Likes
This I like to achieve is to remove the red border around the mandatory field.
It works for first instance but not for second, third and so on...
Thank you
Views
Replies
Total Likes
Click the highlight existing field on the upper right, or use the this sytax for example this.mandatory or if you don't want to do that use the instance of the field otherwise you're referring to the original instance
Views
Replies
Total Likes
with this.mandatory works fine.
Thank you for your help
Views
Replies
Total Likes