Closed (works as designed)
Project:
Webform
Version:
8.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Apr 2018 at 17:39 UTC
Updated:
19 Apr 2018 at 17:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jrockowitz 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 commentedComment #5
jrockowitz commentedComment #6
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 commentedYou should trying using the Remote Post handler (/admin/structure/webform/manage/contact/handlers)
Comment #8
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 commentedYou have to use the Remote Post handler.
Comment #10
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 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 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 commentedBased on the images, you need to remove 'POST (Custom)' and set the Remote Post URL to your payment provided.
Comment #14
jrockowitz 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 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 commentedI have another question.
Can I show some webform fields after submit?m
For example: name, email, address
This in "CONFIRMATION SETTINGS"