• shendeluth

    (@shendeluth)


    Hello!
    I have a problem using Contact Forms 7 submitting form with an externar link who fire submit action. It works fine to usual submitting the form with data , but i want to activate validation of Contact Forms 7 when i fire this link to show validation messages and only sgmit when are all ok. I have create form with no submit button and I apply it into php code as shortcode where there are this link to submit it. I’m doing a step by step pages and its bhy i need this custom develop.

    Part of code

    /* Contact Forms 7 form with no submit button */
    <? echo apply_shortcodes( '[contact-form-7 id="5c87d32" html_id="customizerForm" title="Form"]' ); ?>
    
    /* Here there are some code of another content who separate form fields of submit button. For this i need a separated submit */
    
    /* Steps buttons*/
    <div class="button-layer">
    	<a class="style-button" onclick="saveAndSubmit('customizerForm','saveState','1');">
    		<span class="">
    			<span class=""><? echo __('Back','wordpress');?>
                    </span>
    		        </span>
            </a>
    </div>
    <div class="button-layer">
    	<a class="style-button" id="continue" onclick="document.getElementById('customizerForm').submit();">
    		<span class="">
    			<span class=""><? echo __('Continue','wordpress');?>
                            </span>
    		</span>
    	</a>
    </div>

    I apreciate some help.
    Thank you.

  • The topic ‘Contact Forms 7 with separate submit button’ is closed to new replies.