This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// change view_1 to the view you want to listen to | |
$(document).on('knack-record-create.view_1', function(event, view, record) { | |
// handle record | |
// view is a json object of the form | |
// record is a json object of the record inserted by the view (form) | |
alert('created a new record for view: ' + view.key); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: 'https://api.knackhq.com/v1/objects/object_1/records' | |
, type: 'GET' | |
, headers: { | |
'X-Knack-Application-Id': '5010b4b38eed0a844c0000a9' | |
, 'X-Knack-REST-API-Key': '26cb713e-a350-4139-962d-b3b75958d0d1' | |
} | |
, success: function(data) { | |
alert('got API RECORDS'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "4fed0cab4cbfc268240000df", | |
"field_1": "Kelly and Cohen", | |
"field_16": "4347 Oak Street<br />Syracuse, NY 13202", | |
"field_17": "<a href=\"http://www.kellycohen.com\" target=\"_blank\">http://www.kellycohen.com</a>", | |
"field_18": "Services", | |
"field_31": "315-296-4146" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"field_1":"Knack", | |
"field_16":{ | |
"street":"160 W 71st St", | |
"street2":"", | |
"city":"New York", | |
"state":"New York", | |
"zip":"10023" | |
}, | |
"field_17":{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"field_1":"Knack" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"date":"02/08/2013", | |
"hours":11, | |
"minutes":47, | |
"am_pm":"pm" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title":"Mr.", | |
"first":"Brandon", | |
"middle":"R", | |
"last":"Griggs" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"street":"180 W 71st St", | |
"street2":"Apt 11", | |
"city":"New York", | |
"state":"NY", | |
"zip":"10023" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"email":"brandon@knackhq.com", | |
"label":"Brandon" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"female", | |
"male" | |
] |
OlderNewer