Home Forums Porto Admin Template Wizard From Submit

This topic contains 1 reply, has 2 voices, and was last updated by  Support2 1 month, 2 weeks ago. This post has been viewed 121 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10030235

    riandy
    Participant

    I used Wizard Form #4. I want to submit via form, but it can’t. This is the code:

    HTML Form
    <form class="form-horizontal p-3" novalidate="novalidate" id='form_data_survei_add' enctype="multipart/form-data" action='<?= base_url() ?>api/survei-data-add'>

    HTML Submit Button

    <li class="finish hidden float-right">
                                                <button type='submit' class='mb-1 mt-1 mr-1 btn btn-success'>Save</button>
                                            </li>

    I’ve comment-ed the example wizard (js/examples/examples.wizard.js) on $w4finish.on() so the function stop working. The PNotify is stop working, but the form still on the same page.

    I dont use ajax/jquery submit form. I just want old-style form-submission. Thank you.

    P.S. Sorry for my bad english



    Template Version: -
    #10030237

    Support2
    Keymaster

    Hello,

    As the finish button is out of the <form> we need to send the form trough JS. For it change the “finish” JS code to:

    $w4finish.on('click', function( ev ) {
    	ev.preventDefault();
    	var form = $('#w4 form');
    
    	form.submit();
    	
    });

    Please, try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


Viewing 2 posts - 1 through 2 (of 2 total)