We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Channel Form validation not repopulating field when on firefox or IE

News and General

Scott Boyde's avatar
Scott Boyde
208 posts
10 years ago
Scott Boyde's avatar Scott Boyde

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]
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.