CRM Perks Forms – WordPress Form Builder Shortcode

Below, you’ll find a detailed guide on how to add the CRM Perks Forms – WordPress Form Builder Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the CRM Perks Forms – WordPress Form Builder Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the CRM Perks Forms – WordPress Form Builder Plugin and the shortcodes it provides:

Plugin Icon
CRM Perks Forms – WordPress Form Builder

"CRM Perks Forms is a powerful WordPress Form Builder plugin. It allows you to easily create and manage custom forms, enhancing user interaction and data collection on your site."

★★★★☆ (24) Active Installs: 2000+ Tested with: 6.2.3 PHP Version: 5.3
Included Shortcodes:
  • [crmperks-forms]

CRM Perks Forms – WordPress Form Builder [crmperks-forms] Shortcode

The ‘crmperks-forms’ shortcode is a part of the CRM Perks Forms plugin in WordPress. It is used to embed a form into a post, page, or widget area. This shortcode uses the ‘add_form_shortcode’ function, which returns the form based on its ID. If the website is in RSS feed mode, it simply returns the shortcode text.

Shortcode: [crmperks-forms]

Parameters

Here is a list of all possible crmperks-forms shortcode parameters and attributes:

  • id – Unique identifier of the contact form
  • is_feed() – Checks if the current request is for a RSS feed

Examples and Usage

Basic example – Display a CRM Perks form using its unique ID

[crmperks-forms id="1"]

Advanced examples

Display a CRM Perks form using its unique ID and customize the form’s display with additional parameters. In this case, we are setting the ‘theme’ parameter to ‘dark’ and ‘layout’ parameter to ‘grid’.

[crmperks-forms id="1" theme="dark" layout="grid"]

Display a CRM Perks form using its unique ID and customize the form’s display with multiple additional parameters. In this case, we are setting the ‘theme’ parameter to ‘light’, ‘layout’ parameter to ‘list’, and ‘width’ parameter to ‘500px’.

[crmperks-forms id="1" theme="light" layout="list" width="500px"]

PHP Function Code

In case you have difficulties debugging what causing issues with [crmperks-forms] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode('crmperks-forms', array( $this, 'add_form_shortcode'));

Shortcode PHP function:

function add_form_shortcode($atts){
        if ( is_feed() ) {
        return '[crmperks-forms]';
    }
return $this->show_form($atts['id'],"");
//return $html;
}

Code file location:

crm-perks-forms/crm-perks-forms/includes/front-form.php

Conclusion

Now that you’ve learned how to embed the CRM Perks Forms – WordPress Form Builder Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *