• Hi,

    Is that possible to block the form submission if the message contains the words like “SEO”, “HOSTING” then just ignore it and not even run our custom after_submit_function.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    Yup, there is a filter run right before the form is sent to salesforce. You could bail out or simple return nothing to cause the submission to fail. Check the readme for a complete filter listing.

    Or you could add some custom validation logic to reject messages, but that’d just tell the spammers that you’re in to them.

    • This reply was modified 5 years, 8 months ago by Nick Ciske.
    • This reply was modified 5 years, 8 months ago by Nick Ciske.
    Thread Starter mapperkids1

    (@mapperkids1)

    Thank Nick,

    I already have the ‘salesforce_w2l_after_submit’ action added in the function.php and for this should I just add the “sfwp2l_validate_field” to check if those words contain the message textarea field?

    Do you mind to get me some coding snippet for that?

    Thanks a lot for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘block some words in message before submit’ is closed to new replies.