• Hey

    I was wondering if you can help me with this thing.

    I styled the form upload button like this:
    —————————–
    <div id=”uploadfieldtrick”>
    <p>[file YourCV id:fileuploadfield class:fileuploadfield limit:2mb filetypes:doc|pdf|docx 1/]</p>
    <p>[text uploadtextfield id:uploadtextfield class:uploadtextfield placeholder "Browse CV"]<input type=”button” id=”uploadbrowsebutton” class=”uploadbrowsebutton” value=”Browse”></p>
    </div>
    —————————–
    this is the jquery
    —————————–
    (function($) {
    /*Brought click function of fileupload button when text field is clicked*/
    // $(“#uploadtextfield”).on(“click”, function() {
    // $(‘#fileuploadfield’).click()
    // });

    /*Brought click function of fileupload button when browse button is clicked*/
    $(“.uploadbrowsebutton”).click(function() {
    $(‘#fileuploadfield’).click()
    });

    /*To bring the selected file value in text field*/
    $(‘#fileuploadfield’).change(function() {
    $(‘#uploadtextfield’).val($(this).val());
    });

    })(jQuery);

    —————————–

    Now there are more the 5 forms and when I click any of the form upload button only the first form is effected and i need the specific form to be working.

    Do you have any idea how to accomplish this?

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Igor Ilgiyaev

    (@bigshow)

    p.s.
    every form is in a different post and all of them are shown on one page.
    the idea is to pull the post title (that worked) to each form then upload a CV to the specific form and send.

Viewing 1 replies (of 1 total)
  • The topic ‘Uploading file with the same id on different forms on the same page’ is closed to new replies.