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.

Grid in Channel:Form won't save data

March 09, 2014 9:51pm

Subscribe [3]
  • #1 / Mar 09, 2014 9:51pm

    barryparr

    125 posts

    I’m using a channel form to allow readers to submit letters to the editor that can include pictures. Here’s the (redacted) code:

    {exp:channel:form channel="{my_channel}" category="37" return="/site/page/5569" status="closed"} 
    <textarea name="body" cols="50" rows="20" class="rich_text"></textarea>
    {field:pictures} 
    <input type="submit" value="Post" />
    {/exp:channel:form}

    The form seems to work OK. You can enter photos and captions just as you would in the the control panel. But when I save the form, and go to edit the entry in the control panel, all of the entry is there, except for the grid contents, which are empty.

     

  • #2 / Mar 10, 2014 12:18pm

    ahmad saad

    364 posts

    Hi,

    can u post EE version?

    Regard’s.

  • #3 / Mar 10, 2014 1:11pm

    barryparr

    125 posts

    Oops. It’s v2.7.3 - Build Date: 20131210

  • #4 / Mar 10, 2014 5:02pm

    ahmad saad

    364 posts

    Hi Barry Parr,

    I am try to duplicate ur problem , install EE 2.7.3 add grid field use {exp:channel:form}.

    add images and captions to grid file

    go to CMS the entry added and all grid info is added.

    can u please send me a live url to see what is the problem in ur side.

    Regard’s.

  • #5 / Mar 10, 2014 7:27pm

    barryparr

    125 posts

    Here’s the page:  http://coastsider.com/beta/post

    You can add an entry if you like. All entries from this form are posted as closed.

  • #6 / Mar 10, 2014 8:01pm

    ahmad saad

    364 posts

    Hi,

    I post three letters :

    developer test , developer test 2 , developer test 3

    please check it all and see if the grid content posted .

    Regard’s.

  • #7 / Mar 10, 2014 8:05pm

    barryparr

    125 posts

    I found four posts (developer test went through twice). None had any images in the pictures field.

  • #8 / Mar 11, 2014 3:30am

    ahmad saad

    364 posts

    Hi,

    ohh, ok let us make it simple , so we know the problem in this page or on all your site.

    try to put this simple code in a new template:

    {exp:channel:form channel="{my_channel}" } 
    <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" >
    {field:pictures} 
    <input type="submit" value="Post" />
    {/exp:channel:form}

    and see if it works , or create a new channel with just a grid field and try this simple code.

    try it and let me know.

    Regard’s.

  • #9 / Mar 11, 2014 11:31am

    barryparr

    125 posts

    Excellent suggestion. Thank you.

    That form works as expected.  I’ll go back and rebuild the form and see what the problem is.

  • #10 / Mar 11, 2014 12:13pm

    barryparr

    125 posts

    It’s now working. Thanks again for taking the time to help.

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

ExpressionEngine News!

#eecms, #events, #releases