Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

Americanization of Registration Form

$
0
0
Oxid v.4.7.6 re: application-views-azure-tpl-form-fieldset-user_billing.tpl
Registration Page

My objective is to have a single input box for both street number and street as is customary in the US.

Have made the following changes within the user_billing.tpl:

<li [{if $aErrors.oxuser__oxstreet}]class="oxInValid"[{/if}]>
<label [{if $oView->isFieldRequired(oxuser__oxstreet)}]class="req"[{/if}]>[{ oxmultilang ident="FORM_FIELDSET_USER_BILLING_STREETANDSTREETN O" }]</label>

<!-- <input [{if $oView->isFieldRequired(oxuser__oxstreetnr) }]class="js-oxValidate js-oxValidate_notEmpty" [{/if}]type="text" data-fieldsize="xsmall" maxlength="16" name="invadr[oxuser__oxstreetnr]" value="[{if isset( $invadr.oxuser__oxstreetnr ) }][{ $invadr.oxuser__oxstreetnr }][{else }][{ $oxcmp_user->oxuser__oxstreetnr->value }][{/if}]"> -->


<input [{if $oView->isFieldRequired(oxuser__oxstreet) }]class="js-oxValidate js-oxValidate_notEmpty" [{/if}]type="text" data-fieldsize="pair-xsmall" maxlength="255" name="invadr[oxuser__oxstreet]" value="[{if isset( $invadr.oxuser__oxstreet ) }][{ $invadr.oxuser__oxstreet }][{else }][{ $oxcmp_user->oxuser__oxstreet->value }][{/if}]">

[{if $oView->isFieldRequired(oxuser__oxstreet) }]
<p class="oxValidateError">
<span class="js-oxError_notEmpty">[{ oxmultilang ident="EXCEPTION_INPUT_NOTALLFIELDS" }]</span>
[{include file="message/inputvalidation.tpl" aErrors=$aErrors.oxuser__oxstreet}]
</p>
[{/if}]
</li>

Then the following error message appears during registration:

"Specify a value for this required field."

Which field it refers to is not specified.

How can I get it to validate?

Thank you,

Ray

Viewing all articles
Browse latest Browse all 6951

Trending Articles