ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Extension hooks for contact form

November 15, 2012 3:58pm

Subscribe [0]
  • #1 / Nov 15, 2012 3:58pm

    ciadeveloper

    10 posts

    If this belongs down in “Development and Programming” feel free to move it.  This might also be another situation where I’m missing the shorter route to my goal.  I’m trying to add reCaptcha elements to several forms on the site I am developing using the reCaptcha extension.  I’ve already modified it to work on Safecracker forms, which it didn’t automatically support. I would like to modify it to to work with contact forms (“exp✉️contact_form”), however, I’m not seeing any extension hooks for it. 

    The reCaptcha element is being displayed on the contact form thanks to the ‘create_captcha_start’ hook.  I’ve been trying to find a hook similar to ‘insert_comment_start’ and ‘safecracker_submit_entry_start’ but for the contact form.  Alas, I don’t see anything I’m looking for on the Extension Hooks page or the Email Module page.

    Is there a hook available for when ExpressionEngine begins to process a contact form?
    —Christian

  • #2 / Nov 19, 2012 3:15pm

    Dan Decker

    7338 posts

    Hi Christian,

    I don’t see a hook for that either, but how about this?

    Turn your Contact Form into a SafeCracker form. That way the contacts can be saved to a channel, the admins can still be emailed (when a new entry is posted to the channel), and the reCAPTCHA field will work.

    Just an idea.

    Let me know what you think!

    Cheers,

  • #3 / Nov 19, 2012 4:52pm

    ciadeveloper

    10 posts

    I really like that idea.  The admins could then use comments on the ‘contact form’ channel entries to state what actions have been taken or if it needs special attention.

    That’ll work.  Thanks!
    —Christian

  • #4 / Nov 21, 2012 3:36pm

    Dan Decker

    7338 posts

    Hey Christian,

    In that regard, check out this tutorial on using ExpressionEngine and SafeCracker to build a support system.

    It may give you some ideas and it includes code samples that could get you up-and-running!

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases