My users fill out a registration form (with their emails, and some options). I calculate with ajax from these options a price. I want to redirect them to an other site, so they can pay there the price.
form_alter I add some hidden fields (components) to my webform (like
PaymentRequestId and Payment Status). And I set a custom submit function to the form, as I want to redirect the users.
But I have some difficulties: first I tried to generate and set the
PaymentRequestId in my custom submit function, but I was not able to save the value into the formfield of the submission there. I already asked it here, how to do that, but I could not achieve it. So for a suggestion, I moved these into a
Now, I was able to save my
But I also need this ID in my custom submit function, as the URL (where I need to redirect my users) is generated from this.
But neither the
$form, nor the
$form_state in my custom submit function does not contains the value of the
PaymentRequestId. I do not understand why, as when I watch the Submission on the admin interface, the
PaymentRequestId is there.
Do you have any ideas/workarounds for my problem? Thanks a lot, for all your efforts!