Using an iframe to display a form on your web site

Adding a link on your web site to your Powerbase form is alwys the easiest way to get people to fill out your form.

However, sometimes you want a bit more control over the look and feel. In these cases you can choose to use the iframe option.

An iframe is a way to embed an external page on your own web site. To use this approach:

  • Configure the form to use the iframe theme
  • Contact support - we have to ensure two settings are configured in your local.settings.php file:
$conf['x_frame_options'] = '';
$conf['samesite_cookie_value'] = 'None';

These settings loosen the typical security restrictions imposed on a site that is embedded in an iframe.

  • Add the following code to your web site to incorporate the page:
 <iframe src=""></iframe> 

To use this method, you must have the ability to edit pages on your web site. You also may need to choose an option to use "Full HTML".

Lastly, it's important to know that this approach effectively "tricks" users into submitting data to your Powerbase site when they are accessing your regular web site. This kind of behavior is generally considered bad security by web browser vendors, so there is always a risk that a future web browser update may prevent it from working.

Customizing PowerBase