I have a drop down list in an infopath form, and based on the value selected
I want to make the next field - a textbox required.
I have created an onafterchange event using js
the if statement works
i.e.
if(XDocument.DOM.selectSingleNode("/my:myFields/my:first_submission/my:group6/my:ddlRequestType").text != "New Requirement")
but I can't seem to find the syntax to assign a required value to the textbox
I have read the xsd, xml and xsl and don't see where these attributes are
saved as other required fields on the page don't differ in syntax from
nonrequired fields
any suggestions?
Where field1 is the dropdown and field2 the textbox.
NOTE: You do not need custom code to perform field validation; you can set
validation conditions on fields through the design interface of InfoPath.
---
S.Y.M. Wong-A-Ton
:)
Helen