Form still not working

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #10036357
    MoiraAllen
    Participant

    Hi Rodrigo –

    I used the code your paste bin code but the form still did not work.

    https://pastebin.com/raw/JML0MNbf

    I changed the name to “1” and uploaded it: https://harvesthouseatlantic.org/1volunteer-application

    So I have continued to work on the page and changed the list of volunteer items to check boxes like you had suggested. People need to be able to select more than one item. But unfortunately the form is still not working.

    https://harvesthouseatlantic.org/volunteer-application

    I cannot figure out why this is not working. Thank you so much for your help. Moira


    #10036368
    Support
    Keymaster

    Hello Moira,

    Please use this entire HTML for your page:
    https://pastebin.com/raw/hiH6H9tu

    What I did:
    – Get the entire source code from https://harvesthouseatlantic.org/1volunteer-application and changed the input radios to checkboxes.

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

    Kind Regards,

    Rodrigo.


    If you are satisfied with EZY HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


    #10036386
    MoiraAllen
    Participant
    This reply has been marked as private.
    #10036388
    Support
    Keymaster
    This reply has been marked as private.
    #10036390
    MoiraAllen
    Participant
    This reply has been marked as private.
    #10036399
    Support
    Keymaster

    Hello Moira,

    Thanks for the access!

    Did you received the test message we sent trough the contact form ?

    The problem was wrong and duplicated PHP file name. I changed from:

    <form class="contact-form" action="php/volunteer-application-form.php" method="POST">
    	
    <form class="contact-form" action="php/volunteer-application-form.php" method="POST">

    To:

    <form class="contact-form" action="php/volunteer-application.php" method="POST">

    Hope this helps!

    Kind Regards,

    Rodrigo.


    If you are satisfied with EZY HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


    #10036400
    MoiraAllen
    Participant
    This reply has been marked as private.
    #10036405
    Support
    Keymaster

    Hello Moira,

    Great!

    If you need further assistance feel free to contact us.

    Kind Regards,

    Rodrigo.


    If you are satisfied with EZY HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


    #10036406
    MoiraAllen
    Participant
    This reply has been marked as private.
    #10036414
    Support
    Keymaster

    Hello Moira,

    First please keep all the checkboxes inputs with the same name="xx" attribute. Make sure to change only the type=”checkbox” inputs (not the radios).

    Regarding only one field of checkbox being send in the message:
    Did some tests here and at really the JS code of contact form is not ready to get the checkboxes in a automatic way, sorry for that. To fix that, please change the “Fields Data” code at view.contact.js file to:

    // Fields Data
    var formData = $form.serializeArray(),
    	data = {},
    	multiValues = [],
    	ftFlag = false;
    
    $(formData).each(function(index, obj){
    	if( typeof data[obj.name] !== 'undefined' ) {
    	    if( ftFlag == false ) {
    		    multiValues.push(formData[index - 1].value);
    		    ftFlag = true;
    	    }
    
    	    multiValues.push(obj.value);
    	    data[obj.name] = multiValues;
    	} else {
    	    data[obj.name] = obj.value;
    	}
    });

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

    Kind Regards,

    Rodrigo.


    #10036425
    MoiraAllen
    Participant
    This reply has been marked as private.
    #10036428
    Support
    Keymaster

    Hello Moira,

    I did a new test here with my cache cleared and seems to be working. Can you confirm if you received my test with multiple checkbox values in the message ?

    Please try to clear your browser cache and test again.

    Hope this helps!

    Kind Regards,

    Rodrigo.


    If you are satisfied with EZY HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


    #10036434
    MoiraAllen
    Participant

    THANK YOU! It’s working now. You’re support is amazing 🙂
    Moira


    #10036441
    Support
    Keymaster

    Hello Moira,

    Great the issue is resolved! 🙂

    If you need further assistance feel free to contact us.

    Kind Regards,

    Rodrigo.


    If you are satisfied with EZY HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


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

This topic is marked as "RESOLVED" and can not rceive new replies.