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.

Relationships and File fields won't co-exist in a Channel form

October 15, 2013 3:48pm

Subscribe [1]
  • #1 / Oct 15, 2013 3:48pm

    Podzol

    80 posts

    Hello,
    I have 2 installs of EE2.7.1, both of which are having the same annoying problem.

    When I have a file field and a relationships field on single Channel Form, I cannot change the image (click x, select new image). I have made the adjustment to the libraries/File_field.php on both installs as suggested in the bug reports https://support.ellislab.com/bugs/detail/19732. This fixed the specific issue that needed to be addressed by the bug. The file field works fine when I comment out the Relationships field. The relationships field works well whether or not there is the file field in the form.

    If I click the “X “to remove the file from the file field,  the browser jumps around and the image is not removed from the file field.

    Here is my form template

    {exp:channel:form channel="{embed:page}" return="shop/details/{segment_3}" entry_id="{segment_3}"}
    <h2>Add or Edit Species</h2><p> </p>
    
    <p> <label>Title</label></p>
    
    <p> <input type="text" name="title" id="title" value="{title}" size="80" maxlength="75" /></p>
    
    
    
    <p><br />
            <label>Scientific Name</label></p>
    
    <p>        {field:latin}</p>
    
    <p> </p>
    
    <p><br />
            <label>Species Description</label></p>
    
    <p>        {field:description}</p>
    
    <p> </p>
    
    <p> </p>
    
    <p> <label>Image</label></p>
    
    <p> Add image or click × to remove or change.<br />
         {field:product_image} </p>
    
    <p><div  980px;overflow:hidden;"></p>
    
    <p> </p>
    
    <p><br />
            <label>Related Species</label></p>
    
    <p>        {field:related_species}<br />
    </div></p>
    
    <p> </p>
    
    <p><br />
    <input   type="button" name="cancel" value="Cancel"  true;" /><br />
       <br />
    <input type="submit"  name="submit" value="Submit" /><br />
    {/exp:channel:form}

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

ExpressionEngine News!

#eecms, #events, #releases