WordPress.org

Plugin Directory

jetpack

Opened 2 years ago

Closed 13 months ago

Last modified 13 months ago

#1884 closed enhancement (invalid)

Contact Forms: add 3rd party form fields, field authentication, error messages

Reported by: toddlahman Owned by: toddlahman
Priority: normal Severity: normal
Plugin: jetpack Keywords: grunion contact-form comments
Cc: richard@…

Description

There is already Akismet support built into Contact Forms. There should also be hooks to allow other plugins to add visible and hidden fields to the contact form, and hooks to allow those fields to be authenticated. If the field authentication fails a custom error message can be generated, and form submission can be stopped until the error is corrected. Gravity Forms and Contact Form 7 have these hooks.

Saving the added fields to the database, and sending them via email, should be optional.

If this hooks were added, then I could add spam blocking support for Jetpack Contact Form into Simple Comments. I would like to do the same for Jetpack comments.

http://www.toddlahman.com/shop/simple-comments/

Change History (4)

comment:1 @richardmtl21 months ago

  • Cc richard@… added

comment:2 @georgestephanis20 months ago

Howdy, Todd!

Are there any specific places in the code that adding some simple filters or actions would enable you to extend it as you're after?

We've got adding in an API architecture to the Contact Form module on the queue, but it's not likely to happen in the immediate future, due to other priorities. However, if there's a couple places that we can add some hooks to enable you to play with the data and markup more, just let us know, and we'll see about getting them added more quickly.

comment:3 @jeherve13 months ago

  • Resolution set to invalid
  • Status changed from new to closed

@toddlahman I'm closing this ticket for now. If you have specific filters or actions you'd like us to add to Jetpack's Contact Form, do not hesitate to open an issue or submit a Pull Request on GitHub:

If you're not sure how to submit Pull Requests, you can follow our guide here:

comment:4 @toddlahman13 months ago

I'd much prefer to submit a pull request on Github. Thanks @jeherve. :)

Note: See TracTickets for help on using tickets.