Home Forums Porto – Responsive HTML5 Template No Feedback on Form submission

  • This topic has 6 replies, 3 voices, and was last updated 4 weeks ago by Support2. This post has been viewed 136 times
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #10031844
    Marcus
    Participant

    Dear support.

    i have the same problem as stated here #post-10031841

    After submitting the form (everything goes well and email is sent) it shows the php/contact-form.php with the content
    {“response”:”success”}

    I actually embedded
    js/views/view.contact.js
    into the footer.

    What else can i do or is there a plugin missing which i removed ?

    Have a nice day and thanks in advance.
    Marcus



    Template Version: INDEX-CORPORATE-6
    #10031845
    Marcus
    Participant

    And i realized i do not have a loading text. If that’s important

    <div class="form-group col text-center">
    <input type="submit" value="Formular Absenden" class="btn btn-primary btn-modern" data-loading-text="Loading...">
    </div>

    • This reply was modified 1 month ago by Marcus. Reason: typo
    #10031848
    Marcus
    Participant

    Okay i found something out.
    Everything is working after i added the class to the form
    class="contact-form"

    but if i do this the radio buttons feedback if not chosen something (required) show the error div completely wrong.
    What can i do, do have both things working together ?

    as reference i got my old ticket
    Radiobutton misplaced error


    • This reply was modified 1 month ago by Marcus.
    #10031850
    Marcus
    Participant

    okay i found it myself.
    It can be closed


    • This reply was modified 1 month ago by Marcus.
    #10031853
    Support
    Keymaster

    Hello, it’s great that you figured it out, please let me know if you have any other questions.

    Kind Regards,

    Jonas


    #10031870
    Marcus
    Participant
    Hi Jonas,
    thanks for your answer and yes i have another one.
    i would like to use 2 forms.
    i made a copy in view.contact for contactFormAdvanced and renamed it and use it on the 2nd form as id.
    
    

    $(‘#contactFormAdvanced2’).validate({
    …..
    }
    });

    <form id=”contactFormAdvanced2″ class=”contact-form” action=”include/php/kontakt-form.php” method=”POST”>`

    but as feedback i keep getting an error but the mail got sent.
    and the return is aswell
    response:success

    What else i have to change to run a second form ?

    Thanks in advance.
    Marcus`


    • This reply was modified 1 month ago by Marcus. Reason: typo
    #10031880
    Support2
    Keymaster

    Hello Marcus,

    First please don’t use the “#contactFormAdvanced” code at “view.contact.js”. In your case we recommend use the “Contact Form: Basic”. For it just remove the id="contactFormAdvanced" and id="contactFormAdvanced2"from both forms. As you are using the AJAX method for contact form (trough the action=”include/php/kontakt-form.php”) you shouldn’t use the advanced contact form code.

    Porto is ready for multiple contact forms in same page and isn’t needed to replicate the JS code in view.contact.js. You need just replicate the HTML code and put the class contact-form.

    Also make sure the variable $debug in /php/kontakt-form.php is receiving a value 0:

    $debug = 0;

    If even so the problem persists, please send a online test link with your website for us.

    Kind Regards,

    Rodrigo.


    • This reply was modified 4 weeks ago by Support2.
Viewing 7 posts - 1 through 7 (of 7 total)