Hi,
I have a Value Prompt, set as a Radio button with "Selection 1" and "Selection 2" as the static choices.
I also have two Text Box Prompts and if the Radio button "Selection 1" is selected, I want to make the first Text Box Prompt required, otherwise it should be made optional. If Radio button "Selection 2" is selected, I want to make the second Text Box Prompt required, otherwise it should be made optional.
I'm using version 10.2.2.
Is there a way to do this?
Thanks.
To clarify the Text Box Prompt has a Parameter value of "parmAccountNumber" and is inside an HTML ITEM that has <span id="accountnumbers_prompt"> inside it.
I tried the following but it did not work:
getControl("accountnumbers_prompt")["@required"]=true;
Add:
getControl('accountnumbers_prompt').checkData();