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.

Comment Module - form fields / custom fields?

August 23, 2012 3:56am

Subscribe [2]
  • #1 / Aug 23, 2012 3:56am

    Dan Storm

    70 posts

    I am currently trying to add some comments to a single entry.

    My template code is this:

    {exp:comment:form channel="products"}
    
     <label>Nickname</label>
     <input name="name" type="text" /><br >
               
     <label for="summary">Location</label> 
     <input type="text" name="location" value="{location}" size="50" /><br >
               
     <label for="summary">URL</label> 
     <input type="text" name="url" value="{url}" size="50" /><br >
    
     <label>Review</label>
     <textarea name="comment" cols="70" rows="2"></textarea> 
    
               
     <input type="submit" class="submit" value="Submit review">
             
                              
    {/exp:comment:form}

    The problem is that when I submit a filled form, the location and url parameter stays empty whether I’m logged in or not (unless the logged in member has these filled out in his profile). The comment and nickname goes in fine.

    We are using EE 2.5.2.

     

  • #2 / Aug 23, 2012 6:43am

    zizther

    228 posts

    Do you want these fields to not be required or are you experiencing something wrong with them. If they are not required you could always remove them.

  • #3 / Aug 23, 2012 10:04am

    Lisa Wess

    20502 posts

    Hi Dan,

    Is this code inside a channel entries tag? If so, it needs to be placed outside of that tag.  If you can show us more of the template code that will help us to help you troubleshoot.

    Thank you!

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

ExpressionEngine News!

#eecms, #events, #releases