Skip to content

Instantly share code, notes, and snippets.

View jeremyjclarke's full-sized avatar

Jeremy Clarke jeremyjclarke

  • Vortex Web Solutions
View GitHub Profile
@jeremyjclarke
jeremyjclarke / gist:3409413ec9153dc62a77
Last active March 5, 2017 22:19 — forked from webmerge/gist:27a73a9ad24419054052
Create WebMerge Documents From Knack via AJAX
$(document).on('knack-scene-render.scene_3', function(event, scene) {
$('#view_4 .view-header').after('<div style="padding:15px"><a href="#" id="webmerge" class="kn-button">Send to WebMerge</a></div>');
// link hander: send to webmerge
$('#webmerge').click(function(event) {
event.preventDefault();
// get data
var data = Knack.models['view_4'].toJSON();
@jeremyjclarke
jeremyjclarke / merge_document.php
Created August 23, 2016 20:31
Merge Document from PHP
<?php
//$user = User information from app
//$account = Account information from app
$customerInfo = array(
'FirstName' => $user->first_name,
'LastName' => $user->last_name,
'Email' => $user->email,
'Company' => $account->company,
@jeremyjclarke
jeremyjclarke / populate_receipt.php
Last active November 29, 2017 18:41
Populate PDF Receipt from PHP
<?php
//$user = User information from app
//$account = Account information from app
//$payment = Payment information from app
$customerInfo = array(
'CustomerName' => $user->first_name.' '.$user->last_name,
'Email' => $user->email,
'Company' => $account->company,