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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

oksm-x created an issue. See original summary.

jrockowitz’s picture

Hi oksm-x,

Selecting a custom POST or GET method will automatically disable wizards, previews, drafts, submissions, limits, purging, and confirmations.

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.

jrockowitz’s picture

Status: Active » Needs review

  • jrockowitz committed 5bafa8e on 8.x-5.x
    Issue #2961835 by jrockowitz, oksm-x: Webform -> Method Custom -> POST
    
jrockowitz’s picture

Status: Needs review » Closed (works as designed)
oksm-x’s picture

I 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

jrockowitz’s picture

You should trying using the Remote Post handler (/admin/structure/webform/manage/contact/handlers)

oksm-x’s picture

FileSize
45.42 KB

Hi 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.).

jrockowitz’s picture

You have to use the Remote Post handler.

oksm-x’s picture

Sorry, 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

jrockowitz’s picture

The 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-...

oksm-x’s picture

jrockowitz,

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

jrockowitz’s picture

Based on the images, you need to remove 'POST (Custom)' and set the Remote Post URL to your payment provided.

jrockowitz’s picture

Priority: Major » Normal

I 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.

oksm-x’s picture

jrockowitz,

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)

oksm-x’s picture

I have another question.

Can I show some webform fields after submit?m

For example: name, email, address

This in "CONFIRMATION SETTINGS"