October 11, 2017 at 7:15 am #131427
We need to be able to validate emails on submit and if the email is invalid remain the landing page.
I added a plugin from a 3rd party org.
They offer ability to prevent spam by:
Validate email on registration
Validate email for comments
Hook to is_email() function
Also on the inbound form there are fields to support third party classes. I have placed the class “bpmvp-mail” in the Inbound class field.
After testing however it doesnt work. Everytime I “Submit” the page it just moves onto the submission landing page
How can I get this working?October 11, 2017 at 1:43 pm #131433
I’m not sure I’ll be able to help too much on this one since it involves integrating with an unfamiliar third party plugin.
I can check the landing page for obvious JS errors though if you share a link. Are you trying to prevent spam? Here’s our best guide: http://docs.inboundnow.com/guide/mitigating-spam-sent-through-inbound-forms/October 12, 2017 at 1:07 am #131440
The Akismet plugin is very useful for mitigating spam in comments but it isn’t built to force subscriber emails to be from known, accepted domains.
In our case we want to be able to exclude subscribers from temporary email addresses and hard to qualify as commercial addresses such as gmail, yahoo etc.
As I pointed out the 3rd party app provides an integration by simply adding the class to the email type. However, even though inbound has a field to allow 3rd party classes
and even though Inbound successfully adds the class:
<input type=”email” class=”inbound-input inbound-input-text email inbound-email bpmvp-mail” name=”wpleads_email_address” id=”wpleads_email_address” value=”” data-map-form-field=”wpleads_email_address” required data-required=”true”/>
The class is not respected and the “Redirect URL” is activated after submission.October 12, 2017 at 1:57 am #131443October 12, 2017 at 12:14 pm #131448October 12, 2017 at 12:46 pm #131450October 12, 2017 at 1:53 pm #131453October 12, 2017 at 3:05 pm #131455October 12, 2017 at 3:08 pm #131456October 12, 2017 at 3:14 pm #131457October 13, 2017 at 1:48 pm #131463
Is this the plugin?
If it intercepts submissions based on the presence of a class name then our target solution would be to load the plugin’s JS manually.
There is a lp_head hook you could hook into to call the file directly.
Most templates have this bit of code in them:
https://github.com/inboundnow/inbound-pro/blob/master/core/landing-pages/templates/simple-solid-lite/index.php#L85-L88October 13, 2017 at 2:32 pm #131465
Yes thats the correct plugin.October 15, 2017 at 5:41 am #131473
We do have custom JS hooks you could use:
You are probably looking for this:
You must be logged in to reply to this topic.