Recently needed to add a success callback for a form to change a different elements text other than the submit button.
window.addEventListener('WHC|formID::Success', () => labelElement.textContent = 'text label');
Some possible places for callbacks to fit in
- Success verifying
- Failure verifying
- Progress
- Start
This also gives the opportunity to get rid of the debug functionality that exists internally, since it serves little purpose anymore
Recently needed to add a success callback for a form to change a different elements text other than the submit button.
Some possible places for callbacks to fit in
This also gives the opportunity to get rid of the debug functionality that exists internally, since it serves little purpose anymore