Hi
I have a channel form and using validation for the body field. report_body is required and must be at least 50 characters.
When testing with less than 50 and the page reloads it only repopulates the body field when using chrome, I have tested with both IE and firefox and they do not repopulate the field.
<pre><code> {exp:channel:form channel="reports" return="clubhouse/fixtures/" class="sky-form" rules:report_body="required|min_length[50]" } <header>Publish Match Report</header> <input type=”hidden” name=”report_match” value=”{segment_3}” /> <input type=”hidden” name=”report_club” value=”{club_name}”> <input type=”hidden” name=”report_club_url” value=”{club_url_title}”>
<fieldset>
<section>
<label class="label">Title</label>
{exp:teammanager:club_team_match match_id="{segment_3}" team_id="{segment_4}" }
<input type="hidden" name="title" id="title" value="{match_report_type} - {home_team_name} v {away_team_name} {match_date}" size="50" maxlength="100" >
<input type="hidden" name="url_title" id="url_title" value="{match_report_type}-{home_team_url}-v-{away_team_url}-{match_date}" maxlength="75" size="50">
{match_report_type} - {home_team_name} v {away_team_name} {match_date}
{/exp:teammanager:club_team_match}
</section>
</fieldset>
<fieldset>
<section>
<label class="label">Report Body</label>
{field:report_body}
</section>
</fieldset>
<fieldset>
<section>
<label class="label">Cover Image</label>
Add a cover image for the Article to be displayed beside the Article snippet on the Reports lists and at the top of the full article.
</section>
{field:report_image}
</fieldset>
<footer>
<button type="submit" class="btn-u">Submit</button>
</footer>
{/exp:channel:form}
<!-- End Publish Report Form-->[/code]
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.