I have a form where some fields are visible only when checkox is checked. Now I want to make some of these fields required.
I used this code for one checkbox and it woks.
if (PD.rawValue==1)
{PDamount.presence = "visible",
PDamount.mandatory = "error";}
else
{PDamount.presence = "invisible",
PDamount.mandatory = "disabled";}
In this case both fields are in one table within one subform. I need to achieve the same result for field in a different subform, I used this code but without effect. Can anyone see my mistake?
if (conference.rawValue==1)
{conferenceform.presence = "visible",
conferenceform.Table5.Row2[0].ConfName.mandatory = "error";}
else
{conferenceform.presence = "hidden",
conferenceform.Table5.Row2[0].ConfName.mandatory = "disabled";}
I'd like to help but need more information.
1. Which field owns the script? Can you provide its full address e.g. form1.page1.table1.row1.TextField1
2. Where does the other field lives? Also provide full address.
Oh, before I forget, in your script, you have a coma instead of a semi-colon at the end of the line setting the presence.
Thank you,
Hélène