Creating a Prospect via a webform

Prospect can be create automatically by enabling the functionality to push data from a webform (on your website) straight to Consentz. It requires some web development to control where the data captured by the form is sent.

The ability is enabled via the toggle on the Control Centre -> Settings -> Profile -> Prospect Web Form. Enabling this toggle will display the url required to capture the data from your webform.

The following fields can be changed on your webform, to the Name & ID displayed below.
All the fields are optional.

  • Field: First Name Name: FNAME ID: FNAME
  • Field: Last Name Name: LNAME ID: LNAME
  • Field: Email Name: EMAIL ID: EMAIL
  • Field: Phone Name: PHONE ID: PHONE
  • Field: Message Name: MESSG ID: MESSG

Additional Fields (added 2020)

  • Field: Interested InName: INTERESTEDIN ID: INTERESTEDIN
  • Field: Consultation Type Name: CONSULTATIONTYPE ID: CONSULTATIONTYPE
  • Field: Google Click ID Name: GCLID ID: GCLID
  • Field: Campaign Name Name: CNAME ID: CNAME
  • Field: Campaign Source Name: CSOURCE ID: CSOURCE
  • Field: Campaign Medium ID Name: CMEDIUM ID: CMEDIUM
  • Field: Campaign Term Name: CTERM ID: CTERM
  • Field: Campaign Content Name: CCONTENT ID: CCONTENT

The following example will help clarify the webform functionality for web developers wishing to incorporate it into your website:

Api call using a HTTP POST –

## Request method: `POST`

### Request url: `https://control.consentz.com/api/v1/clinic/XXXXX/prospect`(This is the url created by following the steps above)

#### Post params:
– FNAME: Team
– LNAME: Consentz
– EMAIL: care@consentz.com

#### Curl command:
curl ‘https://control.consentz.com/api/v1/clinic/XXXXX/prospect’ -X POST \
-d ‘FNAME=Team&LNAME=Consentz&EMAIL=care%40consentz.com’