{
  "sendresult": false,
  
  "process": {
    "enabled": true,
    "dbname": "THCL",
    "actions": [
       {"sqlid":"putcontact",    "idx":"contactid"}, 
       {"sqlid":"putmember",     "idx":"memberid"}, 
       {"sqlid":"updcontactmem"} 
    ]
  },
    
  "email": {
    "enabled": true,
    "subject": "THCL - Registration confirmation",
    "from": "John McKay <john@liburne.com>",
    "template": "register.html",
    "tomain": "email",
    "tolist": {
       "srctype" : "db",
       "src" : "contacts"
    }
  },
  
  "form": {
    "enabled": true,
    "subtext": "Register",
    "subicon": "send",
    "fields": [
       [{ "id":"firstname",   "type":"input",    "prompt":"First name", "label":"First name", "class":"validate required" },
       { "id":"lastname",     "type":"input",    "prompt":"Last name",  "label":"Last name", "class":"validate required" }],
       { "id":"email",        "type":"input",    "prompt":"Email",      "label":"Email", "class":"validate required" },
       { "id":"addressline1", "type":"input",    "prompt":"Address Line 1", "label":"Address Line 1", "class":"validate required" },
       { "id":"addressline2", "type":"input",    "prompt":"Address Line 2", "label":"Address Line 2", "class":"" },
       { "id":"town",         "type":"input",    "prompt":"Town", "label":"Town", "class":"validate required" },
       { "id":"postcode",     "type":"input",    "prompt":"Postcode", "label":"Postcode", "class":"validate required" },
       { "id":"over15",       "type":"checkbox", "text":"I am over 15 years of age", "class":"validate required" },
       { "id":"termsok",      "type":"checkbox", "text":"I have read the share offer document and understand and accept the terms of the share offer and the Rules of THCL.", "class":"validate required" },
       { "id":"emailok",      "type":"checkbox", "text":"I consent to the email address above being used as the primary means of communication for official documents from THCL.", "class":"validate required" },
       { "id":"paymethod",    "type":"select",   "label":"Payment method", "options": [ {"v":"CARD","n":"Credit or Debit Card"}, {"v":"BANK", "n":"Bank transfer"}, {"v":"CHEQ", "n":"Cheque"} ], "class":"validate required" }

     ]
  }
}
