• Resolved szurofkamarcii

    (@szurofkamarcii)


    Hey guys, i’ve been trying to create a custom form which gets extracted by a google apps script via a js fetch post.

    I could extract every submitted data with the web app i made, but with the plugins custom code i have problems… Is there any way of giving a “name” attribute for the following:
    *edit: my app script is extracting data using the inputes name attribute*

    <p>Minimum of 3, maximum of 5</p>
    [mfile photos limit:100000000 filetypes:jpg|jpeg|png min-file:3 max-file:5]

    For sample:

    <label for="current-workplace">Current Workplace:</label>
    <input type="text" id="current-workplace" name="current-workplace" required>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @szurofkamarcii

    The upload filed doesn’t have any name it only has data-name attributes, you can get the files of “photos” as there’s input type <input type="hidden" name="photos[]"> appended after the successful upload.

    For example – https://ibb.co/xgMKy12

    Please let me know if you need anything else.

    Glen

    Thread Starter szurofkamarcii

    (@szurofkamarcii)

    Hi @glenwpcoder

    First of all thanks for the fast reply! ??

    In the meantime I realized I actually need something else… I managed to somehow call the input field, but (as i could have guessed it) it gave only the filename as a value. I would need the link for the file unfortunately. Is it generated afterword for the email? Is there anyway i can get the generated link when i submit the form without checking it in email? I could make a script which processes my incoming emails fo each instance, but it wouldn’b so smart ??

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    The links are generated after the form is submitted.

    I’m using this filter to modify the posted_data add_filter('wpcf7_posted_data', 'dnd_wpcf7_posted_data', 10, 1);

    In your case maybe you can handle the submission using javascript, like loop all the values and add a url before the filename.

    Here’s some js hooks from contact form 7 – https://contactform7.com/dom-events/

    Please let me know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Name attribute giving to the multiupload drag and drop’ is closed to new replies.