WordPress plugin

The hipaaform.ai plugin adds a shortcode and a block that place a form on any WordPress page or post. WordPress only stores the shortcode: submissions go straight from the visitor's browser to hipaaform.ai over TLS and are never written to the WordPress database, its plugins or its email.

Install

  1. Download the plugin: hipaaform-wordpress.zip.
  2. In WordPress, go to Plugins → Add New → Upload Plugin, choose the zip and activate it.
  3. In hipaaform.ai, open your form, choose Share and copy its shortcode.

Requirements: WordPress 5.8 or later and PHP 7.2 or later. A hipaaform.ai account is required.

Shortcode

[hipaaform id="FORM_ID"]
AttributeRequiredDescription
idYesThe form ID from the form's Share tab.
titleNoAccessible title for the form's frame. Defaults to Secure form.
[hipaaform id="FORM_ID" title="New patient intake form"]

The shortcode works in the classic editor and in page builders such as Elementor, Divi and WPBakery: add it through the builder's shortcode or text widget.

Block

In the block editor, add the HIPAA Form block and enter the form ID in the block's settings.

Settings

Settings → hipaaform.ai holds the address of the hipaaform.ai service the plugin loads forms from. The zip downloaded from this site is already configured for https://app.hipaaform.ai, so most sites never need to change it.

What the plugin outputs

The shortcode and the block print the same markup as a manual embed and enqueue the loader script once per page:

<div class="hipaaform-embed" data-hipaaform="FORM_ID" data-title="Secure form"></div>
<noscript><a href="https://app.hipaaform.ai/f/FORM_ID">Open the secure form</a></noscript>

Everything in Embed a form on any website therefore applies to WordPress too, including the hipaaform:submit event and the hipaaform_submit dataLayer event for conversion tracking.

Why not an ordinary form plugin?

Typical WordPress form plugins save entries in the WordPress database and send them by plain-text email. That puts protected health information within reach of every plugin, theme, backup and administrator on the site. With hipaaform.ai the form runs in an isolated frame on our domain and the site holds nothing but a form ID.

Caching and optimization plugins

The form is loaded by a small script and rendered in a frame, so page caching is safe. If an optimization plugin delays or combines JavaScript and the form does not appear, exclude embed.js from that optimization.

View this page as Markdown · All docs in one file