Introduction

With this plugin you can create a form on your website.

Public URL for forms

If you have no website you can use our public url to access the checkin plugin.

https://form.dokume.net/?fid=<LIST_ID>&uid=<USER_ID>&k=<API_KEY>

Plugin HTML Code

data-attribute Option Description
view forms / forms2 eventlist is a full list of all events while eventlist_preview are only the next 10 events
getfields "" or true If true the plugin will fetch input fields from DokuMe server
bootstrap "" or true If true the plugin will fetch a bootstrap css file
askemail "" or true If true the contact form will add an email field to the form
callback "" or callback function If set the plugin will call this function after the form has been submitted
initcallback "" or callback function If set the plugin will call this function when it is loaded
uploadfolderid "" or storage forlder ID If set the plugin will upload files to this specific folder
uploadfolderid "" or true If set the plugin will create a google recaptcha plugin. Insert verifyCaptcha.php to your webspace if you want to use recaptcha. Also own key must be created on google recaptcha page
<div class="dm-forms-widget" data-view="forms" data-formid="" data-profileid="" data-getfields="true" data-bootstrap="true" data-apikey="" data-askemail="" data-callback="" data-initcallback="" data-uploadfolderid="" data-recaptcha=""></div>

<script>
!function(){var e,t,r,i,s,n;e=document,t="script",r="dokume_formswidget",i="https://dokume.net/public/plugin/forms/plugin.js",n=e.getElementsByTagName("script")[0],e.getElementById(r)||((s=e.createElement(t)).id=r,"script"===t?(s.src=i,s.defer="defer",s.async=!1):(s.href=i,s.rel="stylesheet"),n.parentNode.insertBefore(s,n))}();

verifyCaptcha.php

<?php

$post_data = http_build_query(
    array(
            'secret' => '',
            'response' => $_POST['response']
    )
);

$opts = array('http' =>
    array(
            'method'  => 'POST',
            'header'  => 'Content-type: application/x-www-form-urlencoded',
            'content' => $post_data
    )
);

$context  = stream_context_create($opts);

$response = file_get_contents('https://www.google.com/recaptcha/api/siteverify', false, $context);
echo $response;

?>