Contact Forms

A suite of structured enquiry and contact forms available via the API. Requests available are 'forms' and 'form'.

Forms

Returns a list of available contact forms.

Filter Key: formid (optional)

Request

https://adviserportals.co.uk/api/1.0/forms/apikey/responseformat

XML Response

<?xml version="1.0" encoding="utf-8"?>
<forms>
    <header/>
    <data>
        <form>
            <formID></formID>
            <formTitle></formTitle>
            <formDescription></formDescription>
            <formButtonUri></formButtonUri>
        </form>
    </data>
</forms>

PHP

$api->getForms($formid = null);

Form

Retrieve a single fully formatted and functioning contact form. Loads all required libraries such as JQuery if not present.

Filter Key: formid (required)

Request

https://adviserportals.co.uk/api/1.0/form/apikey/responseformat/formid/filtervalue

XML Response

<?xml version="1.0" encoding="utf-8"?>
<forms>
    <header/>
    <data>
        <form>
            <formID></formID>
            <formTitle></formTitle>
            <formSyntax></formSyntax>
        </form>
    </data>
</forms>

PHP

$api->getForm($formid);