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.

SAEF required fields not working

May 03, 2011 4:06pm

Subscribe [2]
  • #1 / May 03, 2011 4:06pm

    Eastwood Design

    605 posts

    I have a SAEF in EE 1.7.1 and the required foelds are not working.  I have hardcoded all my custom fields into the form:

    {exp:weblog:entry_form weblog="database" status="closed" return="site/application_payment"}
    
    Name: <input type="text" name="title" />
    Mailing Address: input type="text" name="field_id_26" id="field_id_26" >
    
    {category_menu}
    Category
    
    <select name="category[]" size="4" multiple="multiple">
    {select_options}
    </select>
    
    {/category_menu}
    
    Email: <input type="text" name="field_id_7" id="field_id_7" /><br >
     <input type="submit"  value="submit" />
                {/exp:weblog:entry_form}

    As long as I fill in the title field I can submit the form even though the fields are set to required in the Custom Field section of my CP

  • #2 / May 04, 2011 6:17am

    John Henry Donovan

    12339 posts

    Eastwood Design,

    I can’t replicate this I’m afraid.

    Can you adjust your form to look like mine but substitute your won filed in place of my summary field and test please?
    
    {exp:weblog:entry_form weblog="default_site" return="site/index" preview="site/entry"}
    
    Title
    
    <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100"></p>
    
    URL Title
    
    <input type="text" name="url_title" id='url_title' value="{url_title}" maxlength="75" size="50" /></p>
    
    Summary
    <textarea id="field_id_1" name="field_id_1" dir="ltr" cols="50" rows="6" ></textarea>
    
    
    
    <input type="submit" name="submit" value="Submit" />
    
    
    {/exp:weblog:entry_form}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases