I've followed the instructions at
http://rtfm.modx.com/extras/revo/formit/formit.Tutorials-and-Examples to create a support email form. Here's the beginning of the form (minus some irrelevant cosmetic stuff).
Text fields appear to work fine, but the selects, instead of displaying my values, say
Warning: in_array() [function-in-array]: Wrong datatype for second argument in /core/cache/includes/elements/modsnippet/25.include.cache.php on line
Any idea what I'm doing wrong?
[[!FormIt?
&hooks=`spam,email,redirect`
&emailTpl=`SupportEmail`
&emailTo=`[email protected]`
&redirectTo=`123`
&validate=`name:required,
supporttype:required,
email:email:required,
windowsversion:required,
officeversion:required,
issue:required`
]]
[[$SupportNav]]
[[!+fi.error_message:notempty=`<p>[[!+fi.error_message]]</p>`]]
<br />
<form action="[[~[[*id]]]]" method="post" class="form">
<input type="hidden" name="nospam:blank" value="" />
<p class="copy" style="margin: 20px;">
<label for="name">
Name:
<span class="error">[[!+fi.error.name]]</span>
</label>
<input type="text" name="name" id="name" value="[[!+fi.name]]" />
<label for="supporttype">
Type of support needed: [[+fi.error.supporttype]]
<select name="supporttype" value="[[!+fi.supporttype]]">
<option value="">Select an option...</option>
<option value="Installing" [[!+fi.supporttype:FormItIsSelected=`Installing`]]>Installing</option>
<option value="Purchasing" [[!+fi.supporttype:FormItIsSelected=`Purchasing`]]>Purchasing a license</option>
<option value="Using" [[!+fi.supporttype:FormItIsSelected=`Using`]]>Using software</option>
<option value="Suggestion" [[!+fi.supporttype:FormItIsSelected=`Suggestion`]]>Suggesting an improvement</option>
<option value="Refund" [[!+fi.supporttype:FormItIsSelected=`Refund`]]>Requesting a refund</option>
<option value="Other" [[!+fi.supporttype:FormItIsSelected=`Other`]]>Something else</option>
</select>
</label>
</p>
[ed. note: patwashburn last edited this post 12 years, 11 months ago.]