I’m trying to trigger some actions after form completion, I have configured feathery.setFormCompletion(true)
inside a button click handler in plain JavaScript.
In the client application, I’m initializing and rendering the form like this:
Feathery.init(featherySDKKey);
Feathery.renderAt(this.billingContainer, {
formId: formID,
onFormComplete: () => {
console.log("Feathery form completed:");
}
}, false);
However, the onFormComplete
callback is not being triggered when feathery.setFormCompletion(true)
is called manually.
Am I missing something or is there a recommended way to invoke post-submission actions in Javascript SDK?