• Resolved antoniosilva

    (@antoniosilva)


    Hello, everything is working nicely so far, I was just wondering if it was possible on the API itself to send more data, ie: to send text along with uploaded files.

    Edit: Also, I’m planning to use this alongside contact form 7, what would be the best course of action of getting the url that WeTransfer returns into the email contact form 7 sends ?

    • This topic was modified 7 years, 10 months ago by antoniosilva.
Viewing 1 replies (of 1 total)
  • Plugin Author ozpital

    (@ozpital)

    Sorry for the lack of response. I don’t get notified and rarely check here.

    To use this with Contact Forms 7: Create a CF7 form with a hidden field to contain the WeTransfer url. Give the hidden field an ID.

    Then you can use the ozpital-wpwetransfer-success event to populate the hidden field.

    eg:

    <script>
        var hiddenField = document.querySelector('#yourFormsHiddenFieldID');
        
        document.addEventListener('ozpital-wpwetransfer-success', function(event) {
            hiddenField.value = event.detail.url;
        });
    </script>
    • This reply was modified 7 years, 9 months ago by ozpital.
Viewing 1 replies (of 1 total)

The topic ‘More Info’ is closed to new replies.