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.

The Title field is required (Channel Form)

January 09, 2014 8:25pm

Subscribe [2]
  • #1 / Jan 09, 2014 8:25pm

    Nutmeg

    111 posts

    I have been working on this for awhile (running Zoo Visitor) but I have stripped the Channel Form back to basic and using native tags to see if this functions out-of-the-box.

    It’s a simple Channel Form where the logged in member can upload/change their photo.

    {exp:channel:form channel="members"  return='members/profile/success'}
    
    {field:member_photo} 
                   
                    <input class="button expand radius" type="submit"  value="Update" />
    
    {/exp:channel:form}

    This code will trigger the “The Title field is required.” error

    Adding a title field to the tag:

    {exp:channel:form channel="members"  return='members/profile/success'}
    
    {field:member_photo} 
    <input type="text" name="title" id="title" size="50" maxlength="100" value="{title}"> 
                   
                    <input class="button expand radius" type="submit"  value="Update" />
    
    {/exp:channel:form}

    This works (mind you I don’t know why anyone would want a title field here) but in both instances the remove button doesn’t appear nor the X on the thumbnail work. (adds hashtag to the url)

    JS errors TypeError: 'undefined' is not an object (evaluating '$.datepicker.setDefaults')

    Channel Field
    Field Type = File
    Field Name: member_photo
    Is this a required field?: yes
    Is field searchable?: no

    Allowed file type: image
    Allowed file type: members


    Running v2.7.3 - Build Date: 20131210

  • #2 / Jan 12, 2014 2:51pm

    Rob Allen

    3105 posts

    For the issue of the Title I always include it as a hidden field

  • #3 / Jan 13, 2014 2:00pm

    Nutmeg

    111 posts

    Appreciate some help with this….. perhaps it’s a bug?

  • #4 / Jan 13, 2014 3:38pm

    Rob Allen

    3105 posts

    As it’s a channel entry that’s being edited EE needs to know the entry ID it’s updating, thats’ why the Title is a required field.

  • #5 / Jan 14, 2014 4:40am

    Nutmeg

    111 posts

    Thanks, but the Title Field isn’t the most urgent issue - it’s the remove button which doesn’t appear nor the X on the thumbnail work. (adds hashtag to the url)

  • #6 / Jan 14, 2014 4:53am

    Rob Allen

    3105 posts

    Have you checked that the javascript is being loaded, and also all CP images are on the server (/themes/cp_themes/images)

  • #7 / Jan 14, 2014 5:00am

    Nutmeg

    111 posts

    Running NSM Override - will check if that interferes with the Channel Form - how do I check if which/what JS is loaded? I mean what am I looking for?

  • #8 / Jan 14, 2014 5:12am

    Rob Allen

    3105 posts

    Not sure about NSM but I think that should only affect the CP.

    On your front end editing page the page should pull in Jquery and also the Channel form CSS file (see http://ellislab.com/expressionengine/user-guide/modules/channel/channel_form/index.html#including-assets )

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

ExpressionEngine News!

#eecms, #events, #releases