I know this has been answered before, but searching isn't bringing anything up for "http posts' …
We have a 4 page form. We would like the data from the form to be posted to a third party URL. We don't need to manipulate field names or anything, we can define / map those on the receiving server. If possible, we would like to also send form to cforms tracking db and email recipient as the form currently does while posting to third party via http post.
It seems clear to me that I may need to hire somebody to code this for me, am I on the right track that I would want to use the "my_cforms_filter()" in my-functions.php? I'm guessing we need to manipulate data after "user input validation and cforms processing" and hence my thinking that my_cforms_filter is what we should be looking at… but not really sure. Looked at other functions in my-functions.php but couldn't follow them very well.
Played around with enabling an alternative form action and that didn't seem to post when I tested it, so thinking we want to not use that.... but not really clear either way. :)
I know this has been answered before, but searching isn't bringing anything up for "http posts' …
We have a 4 page form. We would like the data from the form to be posted to a third party URL.
from the last form including all fields from the first forms I assume.
We don't need to manipulate field names or anything, we can define / map those on the receiving server.
that helps.
If possible, we would like to also send form to cforms tracking db and email recipient as the form currently does while posting to third party via http post.
yes.
It seems clear to me that I may need to hire somebody to code this for me, am I on the right track that I would want to use the "my_cforms_filter()" in my-functions.php?
no. no coding necessary.
I'm guessing we need to manipulate data after "user input validation and cforms processing" and hence my thinking that my_cforms_filter is what we should be looking at… but not really sure. Looked at other functions in my-functions.php but couldn't follow them very well.
nope, it can all be done just by configuration. with that said, the configuration may be complex.
Played around with enabling an alternative form action and that didn't seem to post when I tested it, so thinking we want to not use that.... but not really clear either way. :)
but that's the only way really.
quick example:
form #1 has field a, b, c
form #2 has field a2, b2, c2 (AND! a,b,c as hidden fields)
form #3 is a "summary form" (incl. all form #1/#2 fields) , final feedback form (required!)
here is what I would do:
enable 'custom names/ID's' on all forms, e.g. [id:a], [id:b2] etc.
make sure that form #2 carries all fields from form #1, and form #3 carries all fields from #1 & #2, these should be "hidden fields"
form 1,2,3 are NOT multi-page forms, but have "alternative form action!" enabled. 1 points to 2, 2 points to 3, 3 is "last form"
form #1 suppress email/tracking : see core options
form #2 will send to the database and email, but will also forward to form #3
form #3 now includes all fields (mostly hidden fields), some text of your choice and the final submit button
form #3 has "alternative form action!" enabled and points to your remote URL
Thank you so much for the explanation. You are correct, we want to post all the data from all pages.
Some of our users will need to post to a third party, some will not. Our forms are also 4 pages with quite a few field, so there's quite a bit going on there if we are going to reproduce each field on each successive page.
Are there any hooks or ways that would enable an alternative way to post to a third party that we could access? Possibly a way a that we could access via a custom plugin that could either receive data from cforms submissions and then post to a third party or pull from cforms tracking database whenever new submissions are added to database and then post it? I must have misunderstood how my_cforms_filter works… was hoping that was the way…
the alternative would be to simply use cforms' multi-part/page feature, connect all 4 forms and have the last save to DB and send the admin email.
however, as part of the my-functions.php logic (pick the routine that works best, e.g. the 'action' one) you could write up your own PHP routine that make a HTTP POST or GET call to the remote URL passing on all variables stored in the form field data array.
The only thing i dont understand is how to pass checkbox group values from form1 into form2. I cannot hide checkboxes in form 2(?)
Oliver said:
tracedef said:
Please replace the ??? with your data!
I know this has been answered before, but searching isn't bringing anything up for "http posts' …
We have a 4 page form. We would like the data from the form to be posted to a third party URL.
from the last form including all fields from the first forms I assume.
We don't need to manipulate field names or anything, we can define / map those on the receiving server.
that helps.
If possible, we would like to also send form to cforms tracking db and email recipient as the form currently does while posting to third party via http post.
yes.
It seems clear to me that I may need to hire somebody to code this for me, am I on the right track that I would want to use the "
my_cforms_filter()" in my-functions.php?
no. no coding necessary.
I'm guessing we need to manipulate data after "
user input validation and cforms processing" and hence my thinking that my_cforms_filter is what we should be looking at… but not really sure. Looked at other functions in my-functions.php but couldn't follow them very well.
nope, it can all be done just by configuration. with that said, the configuration may be complex.
Played around with enabling an alternative form action and that didn't seem to post when I tested it, so thinking we want to not use that…. but not really clear either way. :)
but that's the only way really.
quick example:
form #1 has field a, b, c
form #2 has field a2, b2, c2 (AND! a,b,c as hidden fields)
form #3 is a "summary form" (incl. all form #1/#2 fields) , final feedback form (required!)
here is what I would do:
enable 'custom names/ID's' on all forms, e.g. [id:a], [id:b2] etc.
make sure that form #2 carries all fields from form #1, and form #3 carries all fields from #1 & #2, these should be "hidden fields"
form 1,2,3 are NOT multi-page forms, but have "alternative form action!" enabled.
1 points to 2, 2 points to 3, 3 is "last form"
form #1 suppress email/tracking : see core options
form #2 will send to the database and email, but will also forward to form #3
form #3 now includes all fields (mostly hidden fields), some text of your choice and the final submit button
form #3 has "alternative form action!" enabled and points to your remote URL