Personal tools

Log in

Changes

From All n One's bxp software Wixi

Jump to: navigation, search

AJAX - API BXP2

1 byte added, 28 July
Parameters
strFunctionOnSuccess - Function to run when the API call returns successful, can be left blank.
strFunctionOnFail - Function to run when the API call returns unsuccessful, can be left blank.
 
======Example======
let objParams = {<br data-attributes="%20/" /> blDisplayErrorText: true,<br data-attributes="%20/" /> intFormId: 1,<br data-attributes="%20/" /> strFieldAndValueListing: { strcData_1: "Test Update" },<br data-attributes="%20/" /> strVariableToPopulate: "aryResponse",<br data-attributes="%20/" /> strFunctionOnStart: "",<br data-attributes="%20/" /> strFunctionOnSuccess: "console.log('API Insert/Update Success.');",<br data-attributes="%20/" /> strFunctionOnFail: "console.log('API Insert/Update Failed.');"<br data-attributes="%20/" /> }<br data-attributes="%20/" /> fn_bxp_API_FormDataInsertUpdateV2( objParams );
348
edits