Skip to content

Add events for callbacks at certain events #45

@gingerchew

Description

@gingerchew

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions