Add Popup Using Gutenberg Block

eForm version 4.7+ comes with Gutenberg blocks. Just make sure you are on the right version to use eForm with WordPress 5.

To add a popup on your post, simply click on the add block button and search for eForm. Click on the Popup Form – eForm

Add Popup Block

Setting Popup Button

The essence of popup form is a popup button. With the following options you can set it very easily.

Popup Block Settings

  • Button Text: Is what is shown in the button.
  • Button Color: The color of the button text.
  • Button Background Color: The background color of the button.
  • Button Position: Where the button is placed on your screen.
  • Button Style: By default buttons are rectangular. If you want to make circular buttons showing just the icon, enable it here.
  • Popup header: Text shown in the popup header. Leave empty to disable.
  • Popup Subtitle: Small text shown below popup header. Works only if header is not empty.
  • Popup Button Icon Class: The class of the icon used in the button. The icons has to be supplied by your theme or some other plugin.

Setting Custom Popup Trigger

It is possible to use any other anchor to trigger the popup form. It becomes handy if you want to use your theme’s button to trigger an eForm.

  • Set the Button Position to Hidden / Manual Trigger.
  • Now clicking the OK button will show you a message with trigger URL.
  • You either note down the trigger URL and insert your theme’s button yourself.
  • Or simply click OK on that message and it will insert a plain anchor tag on your content (along with the required shortcode) which you can customize.
  • Make sure, the trigger button has the class eform-manual-popup and proper href set #ipt-fsqm-popup-form-{id}. The rest of the data attributes are optional.

mahesh has written 19 articles