Skip to main content
All CollectionsCiviPlus Forms
Embedding a form into a website page
Embedding a form into a website page

You can easily embed a simple Profile form into any website

C
Written by CiviPlus Helpdesk
Updated over 2 months ago

Introduction

Within CiviPlus there are simple forms known as Profiles, which are simply collections of fields (both standard and custom) that can be used to collect and display information about contacts. For example, you could create a Profile form allowing a user to be added to a mailing list.

Profile forms are relatively simple, for example they don't have conditional fields and can't take payments, but they are still very useful for getting data into CiviPlus. They are also very easy to embed into any website, as explained in this article.

How to embed a Profile form

First, you need to check that a particular setting in the CiviPlus config has been enabled. Navigate to Administer -> System -> Misc (Undelete, PDFs, Limits, Logging, etc.) and towards the bottom of this page you will see a setting labelled "Accept profile submissions from external sites" - make sure that this is set to Yes

Note: If you can’t see this option in your site - let us know and we get get it enabled.

Now, navigate to Administer -> Customise Data and Screens -> Profiles and find the Profile form that you want to embed into your website. In this example we are going to use the "Your Registration Info" profile that gets shipped with CiviPlus, but you can use a Profile you have created yourself as long as you bear in mind the restrictions described at the start of this article.

At the right of the row for the selected profile you will see are interested click the (more) symbol, and then click on the HTML Form Snippet option.

You will see a page showing the HTML code that you need to embed in your website - simply click the SELECT HTML CODE button, and then use the copy function on your computer (eg Control-C for Windows, Command-C on Mac) to capture the form code to the clipboard.

Lastly, paste the HTML code for the form in a page you’ve built on your website. When a website user fills in the embedded form and hits the Save button the Profile fields will be processed in the same way as would happen for a native CiviPlus form.

Did this answer your question?