Formidable Forms

The Most Advanced WordPress Forms Plugin and Form Builder

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

How to Set Up Comments

Last Updated: April 28, 2020

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 or not you are creating posts with your form.

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.
    • Set the View Format to "Both (Dynamic)".
    • Add whatever you would like to the Content. Include <a href="[detaillink]">Detail page</a> in the Content box.
  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 your View A's Advanced Settings.
  3. Return to View A and add this shortcode to the Detail Page - Dynamic Content box:
    [formidable id=x minimize=1]

    Replace x with the ID of Form B.

  4. Create a new All Entries View for Form B. We'll call this View B.
    • Add a filter which sets the hidden field equal to [get param=entry]. Change 'entry' to the Detail Page Slug set in your View A's Advanced Settings.
  5. Insert View B in the Detail Page - Dynamic 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.
    • Set the View Format to "Both (Dynamic)".
    • Add whatever you would like to the Content. Include <a href="[detaillink]">Detail page</a> in the Content box.
  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 - Dynamic Content box:
    [formidable id=x minimize=1]

    Replace x with the ID of Form B.

  4. Create a new All Entries View for Form B. We'll call this View B.
    • Add a filter which sets the hidden field equal to [post_id].
  5. Insert View B in the Detail Page - Dynamic 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". Insert the following in the URL box:
    your-page-url/detail-page-slug/[x]

    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 x with the ID of the Hidden Field in your Comments form.

  3. That's it! Now 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
Install Formidable Lite

Using WordPress and want to get Formidable Forms for free?

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

Top Features

  • Front End Editor
  • Repeating Fields
  • Views from Entries
  • Calculator Forms
  • Conditional Logic
  • Visual Form Styler
  • Form Templates
  • User Submitted Posts
  • File Upload Forms
  • Spam Protection
  • Multi Page Forms
  • Surveys & Polls
  • Form Graphs & Charts
  • Save and Continue
  • Mobile Forms
  • Stripe Forms
  • PayPal Forms
  • WooCommerce Forms
  • MailChimp Forms
  • User Registration
  • Signature Forms
  • Bootstrap Forms
  • Quiz Maker
  • Zapier Forms
  • Salesforce Forms
  • HubSpot Forms
  • API Webhooks
  • Multilingual Forms
  • Directories

Company

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

Copyright © 2021 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