Formidable Forms

Formidable Forms

  • Features
  • Pricing
  • Blog
  • Support
  • Login
  • Get Formidable Forms

How to Set Up Comments

Last Updated: September 4, 2021

Knowledge Base → Views → Examples → How to Set Up Comments

You may use a Formidable form and View to allow comments on a WordPress post or a View. WordPress allows comments, by default, on a post, but there are situations where using a Formidable form is ideal. You can check out our comments demo. There are two different ways to set up comments depending on whether you create posts with your form or not.

Formidable Forms is the best WordPress Form Builder plugin. Get it for free!

Set up comments on entries

If you are NOT creating posts with your form, follow the directions below to set up comments.

  1. Create a View for the form that you would like users to comment on (Form A). We'll call this View A.
    • Select Classic or Grid for the View type.
    • Add whatever you would like to the Listing Page Content box. Select the Text tab and add a link to the detail page:
      <a href="[detaillink]">Detail page</a>
  2. Create a form for comments (Form B).
    • Add any fields you would like.
    • Add a hidden field with [get param=entry] as the default value. You will need to change 'entry' to the Detail Page Slug set in the View A's Advanced Settings.
      Default Value Entry ID
  3. Return to View A and add this shortcode to the Detail Page Content box:
    [formidable id=x minimize=1]

    Replace x with the ID of Form B.

  4. Create a View for Form B. We'll call this View B.
    • Select Classic or Grid for the View type.
    • Add a filter that sets the hidden field equal to [get param=entry]. Change 'entry' to the Detail Page Slug set in the View A's Advanced Settings.
      Default Value Entry ID
  5. Insert View B in the Detail Page Content of View A. Insert View A on a page. Be sure to include "filter=1" View A's shortcode.

Set up comments on posts

If you are creating posts with your form, follow the directions below to set up comments.

  1. Create a View for the form that you would like users to comment on (Form A). We'll call this View A.
    • Select Classic or Grid for the View type.
    • Add whatever you would like to the Listing Page Content box. Select the Text tab and add a link to the detail page:
      <a href="[detaillink]">Detail page</a>
  2. Create a form for comments (Form B).
    • Add any fields you would like.
    • Add a hidden field with [post_id] as the default value.
      Default Value Post ID
  3. Return to View A and add this shortcode to the Detail Page Content box:
    [formidable id=x minimize=1]

    Replace x with the ID of Form B.

  4. Create a View for Form B. We'll call this View B.
    • Select Classic or Grid for the View type.
    • Add a filter that sets the hidden field equal to [post_id].
      Default Value Post ID
  5. Insert View B in the Detail Page Content of View A. Insert View A on a page. Be sure to include "filter=1" View A's shortcode.

Refresh page with new comment

If you would like to refresh the page when a new comment is submitted, you may do the following:

  1. Go into your Comment form's Settings.
  2. Select Redirect to URL from the "On Submit" dropdown. Insert the following in the URL box:
    your-page-url/detail-page-slug/[100]
    • Replace your-page-url with the URL of the page where the View is published.
    • Replace detail-page-slug with the Detail Page Slug set in the View's Advanced Settings.
    • Replace 100 with the ID of the Hidden Field in your Comments form.
  3. That's it! When a user submits a comment, the page will refresh with their comment included in the content.

Related Videos

  • Job board: Add comments to job applications
  • Job board: Send a followup email from the job seeker
  • Set up comments on entries
  • Set up comments on posts
  • Refresh page with new comment
  • Related Videos
Categories
×

Categories

  • Installation & Getting Started
  • Account Management
  • Forms
  • Entries
  • Views
  • Styles
  • Importing & Exporting
  • Add-Ons
  • Extend Formidable Forms

Using WordPress and want to get Formidable Forms for free?

Get Formidable Forms Lite Now

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

Take on bigger projects Right Now

Get the tools you need to revolutionize your workflow and architect a masterpiece. Build the most advanced WordPress forms and actually use the data you collect in meaningful ways.

Get the most advanced WordPress form plugin and the only form builder with integrated Views.

Get Formidable Forms Now

Resources

  • Community
  • Affiliates
  • Contact
  • Free Online Form Builder

Top Features

  • Application Builder
  • Calculator Forms
  • Surveys & Polls
  • Quiz Maker
  • Form Templates
  • Application Templates
  • Directories
  • Donation Plugin

Company

  • About Us
  • Giving Back
  • Careers
  • Newsletter
  • Blog

Copyright © 2022 Strategy11, LLC. Formidable FormsĀ® is a registered trademark Strategy11, LLC.
Privacy Policy | Terms of Service | Sitemap

Join 300,000+ using Formidable Forms to create form-focused solutions fast. Get Started See User Reviews