Support » Plugin: Newsletter » Bug: Newsletter plugin asks for fiiling the email form inside WPBakery PB

  • Resolved a2e2aef407e3ef25f92f6dd8161b7e3c

    (@a2e2aef407e3ef25f92f6dd8161b7e3c)


    Hi there,
    I’m trying to use Newsletter plugin with WPBakery PB on my home page, but it turns out, that inside page edit mode, Newsletter input field asks me to fill the valid email, before I click on ‘Save’ page button.

    Could you somehow fix it? It’s quite weird, that in EDIT page mode, I have to fill out the email field.

    Proof pic: https://postimg.cc/gw0Rys3x

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    Hi, it’s not clear to me how that email field is added. Using a block?

    a2e2aef407e3ef25f92f6dd8161b7e3c

    (@a2e2aef407e3ef25f92f6dd8161b7e3c)

    Hi! Thank you for your reply.

    It’s just a copy-paste code from ‘Standard form code’ (from one of the Newsletter tabs). I inserted it to the Text block (WPBakery PB element), and it’s displayed in that way.

    Here is a code, that I inserted to my webpage:

    <div class="tnp tnp-subscription newsletter-form-wrapper">
    	<form action="https://example.com/?na=s" method="post">
    		<input name="nlang" type="hidden" value="" />
    		<div class="tnp-field tnp-field-email">
    			<label>Email</label>
    			<input class="tnp-email" name="ne" required="" type="email" />
    		</div>
    		<div class="tnp-field tnp-field-button">
    			<input class="tnp-submit" type="submit" value="Подписаться" />
    		</div>
    	</form>
    </div>

    BTW, after I save the value of that WPB PB block, it somehow delete the next part of the code:
    onsubmit="return newsletter_check(this)" from the root of the form element. However, it doesn’t have any negative/positive impact on the validation process.

    Text block value: https://imgur.com/a/1ntQFOb

    Plugin Author Stefano Lissa

    (@satollo)

    That is not a Newsletter problem, but a backery problem. If you add a form in that way, it validates event those field.
    Add the form to our forms panel and reference it with a shortcode like [newsletter_form form=”1″].

    Stefano.

    a2e2aef407e3ef25f92f6dd8161b7e3c

    (@a2e2aef407e3ef25f92f6dd8161b7e3c)

    OK, thank you, sounds good!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.