I have a form that has the fields coming from Custom Tags. I have examples of the two types:
The first is a textarea. The second is a radio button and I don't know how to show that it is required. I'd like to somehow check that if they are required, on submit, it checks and if they are not filled out, it should throw an error message and highlight the field that is required and not filled out. Thanks.
<TEXTAREA required=#iif(attributes.R
equiredFie
ld EQ 0, de("yes"), de("no"))# cols="85" rows="7" name="#Attributes.ControlN
ame#" id="txt.#Attributes.Contro
lName#">
#attributes.StoredValue#
</textarea>
<TABLE class="evalradio">
<TR>
<th class="evalradio">Unsatisf
actory</th
>
<th class="evalradio">Needs Improvement</th>
<th class="evalradio">Meets Expectations</th>
<th class="evalradio">Exceeds Expectations</th>
<th class="evalradio">Far Exceeds Expectations</th>
</tr>
<TR>
<TD class="evalradio"><input type="Radio" name="#Attributes.ControlN
ame#" value="0" <CFIF Attributes.StoredValue EQ 0>checked</cfif>></td>
<TD class="evalradio"><input type="Radio" name="#Attributes.ControlN
ame#" value="1" <CFIF Attributes.StoredValue EQ 1>checked</cfif>></td>
<TD class="evalradio"><input type="Radio" name="#Attributes.ControlN
ame#" value="2" <CFIF Attributes.StoredValue EQ 2>checked</cfif>></td>
<TD class="evalradio"><input type="Radio" name="#Attributes.ControlN
ame#" value="3" <CFIF Attributes.StoredValue EQ 3>checked</cfif>></td>
<TD class="evalradio"><input type="Radio" name="#Attributes.ControlN
ame#" value="4" <CFIF Attributes.StoredValue EQ 4>checked</cfif>></td>
</tr>
</table>
</cfoutput>
Start Free Trial