Share all details about your problem, including any error messages you may have received.
<Field displayName="Field A" name="fieldA" postBack="true" required="true" type="string">
<AllowedValuesDefinition>
// List of Strings of allowed values
</AllowedValuesDefinition>
</Field>
<Field dependencies="fieldA" displayName="Field B" name="fieldB" dynamic="true" type="string">
<Script>
<Source>
// How do I set fieldB as required if fieldA.equals("someString")?
</Source>
</Script>
</Field>
Hi everyone. In a form, I have 2 fields, fieldA and fieldB. For fieldA, there is a list of allowed values. How do I set fieldB as required only if fieldA.equals(“someString”)?
P.S. is there any documention I can find online on the methods being called here i.e. form.getField().getValue()? I wasn’t able to find it in the IIQ JavaDocs