Advanced

  • Action hooks

    It’s possible to modify or extend the default behavior of HTML Forms beyond what is possible with the available settings. To do this you can use any of the available action hooks and filter hooks in the plugin. To learn more about what action hooks are, please refer to the...

  • Conditional elements

    Conditional elements are supported in HTML Forms by using two special attributes: data-show-if and data-hide-if.

  • Custom form validation

    HTML Forms will perform the following form validation by itself:

  • Example code snippets

    While this knowledge base contains some general usage tips, sometimes code speaks louder than words. That is why we’re actively putting together and maintaining a GitHub repository of example code snippets for HTML Forms. Please make sure to go through the code of HTML Forms itself as well, as most...

  • Filter hooks

    It’s possible to modify or extend the default behavior of HTML Forms beyond what is possible with the available settings. To do this you can use any of the available action hooks and filter hooks in the plugin. To learn more about what filter hooks are, please refer to the...

  • JavaScript events

    HTML Forms fires several JavaScript events when visitors interact with a form on your site. You can hook into these events to run your own code, for example to send events to Google Analytics. Available form events