0

A very quick question, I'm trying to make a comment form but I get an error on submit that the Comment field is required, even though its filled in.

No Idea why as I checked other questions etc code seems fine.

      <div class="comment-form">
            <h3> Leave a comment </h3>
            {exp:comment:form channel="blog_post"}
                <ol>
                    <li>
                        <label>YOUR NAME<span>*</span></label>
                        <input type="text" name="name" value="{name}" />
                    </li>
                    <li>
                        <label>YOUR EMAIL<span>*</span></label>
                        <input type="email" name="email" value="{email}" />
                    </li>
                    <li>
                        <label>YOUR WEBSITE</label>
                        <input type="text" name="url" value="{url}" />
                    </li>
                    <li>
                        <label>YOUR COMMENT<span>*</span></label>
                        <textarea name="comment">{comment}</textarea>

                    </li>
                    <li class="submit"><button type="submit">POST COMMENT</button></li>
                </ol>
            {/exp:comment:form}
        </div>

Can you spot an error? Or maybe direct me the right direction?

Thank you in advance

1
  • You need an entry id to link the comment to. Commented May 9, 2015 at 10:15

1 Answer 1

0

So you need to either specify an entry URL title or an entry ID

{exp:comment:form channel="blog_post" url__title = "{segment_x}"}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.