A webhook interface instance, tied to a particular session.
Within interface steps, you can use these methods directly to alter the schema being returned to the user interface.
Example
var manager = webhook.getInterfaceManager();
manager.addStep("Check job number", function(webhookJob, webhookInterface, step){
if(webhookJob.getQueryStringValue("job_number")){
webhookInterface.addField({
id: "something_else",
name: "Some other field",
type: "text",
description: "Thanks for adding a job number!"
});
step.complete = true; // Mark step as complete
}
});
A webhook interface instance, tied to a particular session. Within interface steps, you can use these methods directly to alter the schema being returned to the user interface.
Example
var manager = webhook.getInterfaceManager(); manager.addStep("Check job number", function(webhookJob, webhookInterface, step){ if(webhookJob.getQueryStringValue("job_number")){ webhookInterface.addField({ id: "something_else", name: "Some other field", type: "text", description: "Thanks for adding a job number!" }); step.complete = true; // Mark step as complete } });