Hi!
We have created a custom field of type "Custom" called "mobile_number" - we need to have this field on all ticket submission pages. The reason it has been created as field of type "Custom" rather than any built in field type is that we want to show this field within the "General Information" tab.
Now, we have added the following code to the "General Information" tab:
PHP Code:
<tr>
<td align="left" valign="top" class="row2"><span class="<{if $posterror == true && $mobile_number == ""}>redtext<{else}>smalltext<{/if}>">VIPtel Mobile
Number</span></td>
<td><input name="mobile_number" type="text" size="25" class="swifttext"
value="<{$mobile_number}>"></td>
</tr>
This field behaves as expected in all situations but one - when a required field (e.g. subject or message) is missing. What happens then is that this is the field that gets highlighted in red (and cleared) along with the field(s) with which the actual problem exists.
I suspect the problem is because of how we are referring to the field in the check, i.e.
- my question is - is this the right way to refer to the field? Or should we be using something like
PHP Code:
$_swift[something][something]
to refer to the field?
Regards,
-Varun