Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, Could you help me, please?
I decided to change the method to POST (Custom); when I click in the submit, this not send an email and not register the form data.
What I have to do to send the mail and save the data?
I am waiting your comments
Thanks and Greetings
Comment | File | Size | Author |
---|---|---|---|
#12 | Screenshot from 2018-04-17 18-12-40.png | 32.97 KB | oksm-x |
#12 | Screenshot from 2018-04-17 18-12-52.png | 54.72 KB | oksm-x |
#12 | Screenshot from 2018-04-17 18-13-02.png | 72.92 KB | oksm-x |
#12 | Screenshot from 2018-04-17 18-16-16.png | 41.44 KB | oksm-x |
#8 | Screenshot from 2018-04-17 14-33-16.png | 45.42 KB | oksm-x |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedHi oksm-x,
When you select a custom POST or GET, you are basically detaching the form from the backend, which means the form submission will not be processed/handled. You probably don't want to use this setting.
The attached patch appends 'emails and handlers' to the above list of disabled features.
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #6
oksm-x CreditAttribution: oksm-x commentedI had to did this because in the another page after submit, I am working with payment online and I am sending by POST all data, it is important to send mail and register the form,
Are there another form to send data without lost the functionality? (Register form and send data by email)
Thanks
Comment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedYou should trying using the Remote Post handler (/admin/structure/webform/manage/contact/handlers)
Comment #8
oksm-x CreditAttribution: oksm-x commentedHi jrockowitz,
I tried redirect with CONFIRMATION SETTINGS but not work..
-> URL (redirects to a custom path or URL)
-> URL with message (redirects to a custom path or URL and displays the confirmation message at the top of the page.).
Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedYou have to use the Remote Post handler.
Comment #10
oksm-x CreditAttribution: oksm-x commentedSorry, but I don't understand how to work "Remote Post handler"
I have to add a link, but in that link, have I to add the code?
This code is for send email and register the form
Could send me and example?
Thanks
Comment #11
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe remote post would be used to push/post the submission data to a remote server.
@see https://youtu.be/oMCqqBJfWnk?t=4m30s
If you want to send an email using the Webform module and then redirect via a form post to a new server, you are going to have to write custom PHP and JavaScript code.
@see https://stackoverflow.com/questions/2604530/a-good-way-to-redirect-with-...
Comment #12
oksm-x CreditAttribution: oksm-x commentedjrockowitz,
I tried the first recommendation but I think doesn't call Remote Post, I checked the video and I think I did all, I don't know what is missing, I attached some images.
This is my test form:
https://mexicobusinessevents.com/registernowpayment
-> When somebody register, it has to send to payment format
-> Here have to register the form and send email to register
But it not work
Comment #13
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedBased on the images, you need to remove 'POST (Custom)' and set the Remote Post URL to your payment provided.
Comment #14
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI just realized you can't use the Remote Post because you are not collecting the credit card number. You are going to have to redirect the user using a POST request using custom code.
Comment #15
oksm-x CreditAttribution: oksm-x commentedjrockowitz,
I add the credit card form after submit all data,
There are 3 screens
First: General form /registernowpayment
Second: I receive all data (Post) and show the credit card form
Third: I Show the message depend of the bank (authorized or not authorized the credit card)
Comment #16
oksm-x CreditAttribution: oksm-x commentedI have another question.
Can I show some webform fields after submit?m
For example: name, email, address
This in "CONFIRMATION SETTINGS"