I have a conventional form (Laravel 5.5/PHP) that collects info from the user about a house property. As you would expect, the browser hints at the value by remembering past entries and prompting them when the field gets focus.That is all fine, but I have one field where I collect a numeric value (for improvements to the property) and the browser prompts with a US State value. This occurs with both Chrome and Edge.
I can't see any code or DOM reason for this to happen and need to correct it as it's confusing for users and is causing incorrect data entries. How the heck do I diagnose and fix this one? I've done extensive searches and can't find anything about this issue (lots on turning autocomplete on or off or forcing the value, none that address my issue).
FWIW, here's my form code:
{!! Form::open(['method' => 'POST', 'route' => ['admin.real_property_assets.store']]) !!}
(....)
<div class="row">
<div class="col-xs-12 form-group">
{!! Form::label('real_improvements', trans('quickadmin.real-property-assets.fields.real-improvements').'', ['class' => 'control-label']) !!}
{!! Form::text('real_improvements', old('real_improvements'), ['class' => 'form-control', 'placeholder' => 'Amount of any improvements you made to this property while owning it']) !!}
<p class="help-block">Any adjustments, improvements, construction or renovation costs incurred during ownership of the property</p>
@if($errors->has('real_improvements'))
<p class="help-block2">
</p>
@endif
</div>
</div>
(....)
{!! Form::submit(trans('quickadmin.qa_save'), ['class' => 'btn btn-danger']) !!}
{!! Form::close() !!}
This is what it looks like for the field real_improvements:
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire