Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forms #15

Merged
merged 12 commits into from
Oct 14, 2024
Merged

Forms #15

merged 12 commits into from
Oct 14, 2024

Conversation

rockwellll
Copy link
Collaborator

This PR allows for more control of the form's success message, previously when a form was completed, it dispatched a form:completed event and removed itself from the DOM.

[Deprecated] Configuration options

It removes the autoMountForms from the top-level config object when initializing the library.

[New] Configuration options

It replaces removed autoMountForms and replaces it with an object that accepts the following attributes,

Hellotext.initialize('HELLOTEXT_BUSINESS_ID', {
  forms: {
    autoMount: true,
    successMessage: 'Thank you for submitting the form'
  }
})

It updates the readme as well to highlight new configuration options.

@rockwellll rockwellll merged commit ea5ce30 into main Oct 14, 2024
2 checks passed
@rockwellll rockwellll deleted the forms branch October 14, 2024 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant