Find line 878, which should look like this:
var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8", "none", {validateOn:["blur"], minChars:5, maxChars:10});
on the users_Registration.php page. Change the minChars and maxChars to match with how it should be for your country's zip.
Deleting the zip from the form is a little more complicated. The easiest way to get this to work is to just have the state field have a default value and insert that default value into the database. You can delete all the options except for the first two. Then you would want to move the selected="selected" to the second option. then you would want to set the span tag to have a style setting the visibility to hidden. Next you would want to remove the </tr>, <tr> and <th>State:</th> tags above the span tag. The end result should look like this (I've included the city table row as well):
<tr>
<th>City:</th>
<td><span id="sprytextfield7">
<input name="UserCity" type="text" class="WAATKTextField" id="UserCity" onBlur="if (document.getElementById('cityServerValidation')) document.getElementById('cityServerValidation').style.display='none'" value="<?php echo(ValidatedField("usersRegistration","UserCity")) ?>" size="32" />
<span class="textfieldRequiredMsg">A value is required.</span></span>
<?php
if (ValidatedField("usersRegistration","usersRegistration")) {
if ((strpos((",".ValidatedField("usersRegistration","usersRegistration").","), "," . "16" . ",") !== false || "16" == "")) {
if (!(false)) {
?>
<span class="textfieldServerError" id="cityServerValidation">
Please enter your city. </span>
<?php //WAFV_Conditional users_Registration.php usersRegistration(16:)
}
}
}?></td>
<td><span id="spryselect1" style="visibility:hidden">
<select name="UserState" id="UserState" onBlur="if (document.getElementById('stateServerValidation')) document.getElementById('stateServerValidation').style.display='none'" onChange="if (document.getElementById('stateServerValidation')) document.getElementById('stateServerValidation').style.display='none'" >
<option value="" <?php if (!(strcmp("", (ValidatedField("usersRegistration","UserState"))))) {echo "selected=\"selected\"";} ?>>Choose a state</option>
<option value=" " selected="selected" <?php if (!(strcmp(" ", (ValidatedField("usersRegistration","UserState"))))) {echo "selected=\"selected\"";} ?>>N/A</option>
</select>
<span class="selectRequiredMsg">Please select an item.</span> </span>
<?php
if (ValidatedField("usersRegistration","usersRegistration")) {
if ((strpos((",".ValidatedField("usersRegistration","usersRegistration").","), "," . "17" . ",") !== false || "17" == "")) {
if (!(false)) {
?>
<span class="textfieldServerError" id="stateServerValidation">
Please choose your state. </span>
<?php //WAFV_Conditional users_Registration.php usersRegistration(17:)
}
}
}?></td>
</tr>