How do I embed a form in my own web site?

Powerbase runs on a different server and uses a different domain name then your normal web site. However, often organizations want people to fill out a form from Powerbase while browsing their one web site.

This article covers the many ways to accomplish that task.

Link instead

If your primary concern is to have a smooth experience for your visitors, you may not need to embed at all. We can create a theme on your Powerbase site that is similar to the look and feel of your web site. Then, you can simply add a link from your web site to the Powerbase form. Since the look and feel are consistent, most visitors won't even realize that they left your site.

More importantly, linking to a form where folks can enter information is the most secure way to collect information since the form is a Powerbase form which is secure because your database is secure!

This approach will always be the least technically complicated and most reliable. All things being equal, it's the best option.

Use iframes

Powerbase has a built-in method for embedding your forms as "iframes". See our iframe page for more details.

Other options (not recommended)

There are two other options commonly used in the past that we no longer recommend.

remote form

remoteform allows you to copy and paste some javascript into your web site to display a form.

However, remoteform is deprecated and it only works for profiles and simple contribution pages. Complex contribution pages (using memberships, recurring donations, etc) are not supported, nor are event registration and petitions.

html snippets

It is possible to generate an html snippet from a profile and copy and paste the html onto your web site. When a user submits the form, they are redirected to powerbase where the data is stored and then redirected back to your web site. This feature is deprecated in CiviCRM for security reasons and can easily be replicated with iframe or remote form.

Category: 
Admin Tasks
Collecting and Managing Contact Information
Customizing Powerbase