ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Global Errors

April 29, 2014 5:50am

Subscribe [1]
  • #1 / Apr 29, 2014 5:50am

    nexuspointltd

    17 posts

    Hello

    I am trying to create a exp:channel:form with global errors and it is quite simply not working.

    See my code below:

    {exp:channel:form channel="retailer" error_handling="inline" id="member_information" class="form-horizontal" role="form" return="members/thank-you" }
          <div class=“error”>
                {if global_errors:count}
                    <ul>
                    {global_errors}
                      <li>{error}</li>
                    {/global_errors}
                    </ul>
                {/if}
                {if field_errors:count}
                    <ul>
                    {field_errors}
                      <li>{error}</li>
                    {/field_errors}
                    </ul>
                {/if}
          </div>
          <div class=“form-group”>
            <label for=“title” class=“col-sm-4 control-label”>Company name: *</label>
            <div class=“col-sm-8”>
            <input type=“text” class=“form-control” name=“title” id=“title”>
            </div>
            {if error:title}
            <div class=“col-sm-12”>
           
             
              {error:title}
           
            </div>
            {/if}       
          </div>

          {custom_fields}

    What am I doing wrong?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases