Hi we have a client who would like us to use Umbraco Contour to create a form. This by default meets their first requirement of being able to create a form and the data from it can be exportable. The second step is that they would like to redirect the user to a third party site and also send the from data (as post) to the thrid party (in this case a payment providers payemnt page). The only way i can think of is by setting up a thank you page for the form with a hidden form which auto submits to the 3rd parties site.
Is there a better way of doing this? You help and guidance is much appreciated
Thanks for your quick reply. It is not just the form data that needs to be sent to the 3rd party webiste, the actual user needs to be redireted to their site. On their site they have a form which gets prefilled based on the form data that is sent to it.
Well the workflows will happen in the background, if you want to send the user to another site you'll have to customize the workflow so that is does the redirect. You can download all the default providers on the contour project page
Hi Tim, thanks for your post. My understanding was that the workflows only did background tasks, thatnks for clearing this up, it should be relativly straight forward from here.
Hi Tim, thanks for your help so far, I have managed to get the redirection working. The next step is for me to map the contour form fields to the 3rd parties fields.
Ideally i would like to create a custom FieldSetting that lists all of the forms fields with text boxes next to each of them where i could enter the 3rd parties field names, this will give me a mapping between the contour form fields and the 3rd parties fields.
How would i go about creating this custom FieldSetting?
Hi Tim thanks for your help earlier, wanted to quickly update this post to indicate i have managed to get the custom workflow working with the help of a custom FieldSetting and a custom Control
however i wanted to know if there are any side effects of not returning
WorkflowExecutionStatus.Completed
I assume that if there are any workflows after my one then they wont run, but aprat from that are there any other potential issues?
It looks like you create a html form on the fly and auto-post it, right!? I thought Tim said that workflows happen in the background, but he probably meant the pre-set workflows. So a custom workflow can work with the record data as well as redirect the user to another page.
Thanks a lot, I've downloaded the Development Manual and created a custom workflow. working with it now.
Send form data to 3rd party
Hi we have a client who would like us to use Umbraco Contour to create a form. This by default meets their first requirement of being able to create a form and the data from it can be exportable. The second step is that they would like to redirect the user to a third party site and also send the from data (as post) to the thrid party (in this case a payment providers payemnt page). The only way i can think of is by setting up a thank you page for the form with a hidden form which auto submits to the 3rd parties site.
Is there a better way of doing this? You help and guidance is much appreciated
You could setup a workflow task that runs after a contour record has been approved and then sends the form data to the third party
Thanks for your quick reply. It is not just the form data that needs to be sent to the 3rd party webiste, the actual user needs to be redireted to their site. On their site they have a form which gets prefilled based on the form data that is sent to it.
Comment author was deleted
Hi Asif,
Well the workflows will happen in the background, if you want to send the user to another site you'll have to customize the workflow so that is does the redirect. You can download all the default providers on the contour project page
Hi Tim, thanks for your post. My understanding was that the workflows only did background tasks, thatnks for clearing this up, it should be relativly straight forward from here.
Thanks
Hi Tim, thanks for your help so far, I have managed to get the redirection working. The next step is for me to map the contour form fields to the 3rd parties fields.
Ideally i would like to create a custom FieldSetting that lists all of the forms fields with text boxes next to each of them where i could enter the 3rd parties field names, this will give me a mapping between the contour form fields and the 3rd parties fields.
How would i go about creating this custom FieldSetting?
Thanks
Hi Tim thanks for your help earlier, wanted to quickly update this post to indicate i have managed to get the custom workflow working with the help of a custom FieldSetting and a custom Control
however i wanted to know if there are any side effects of not returning
I assume that if there are any workflows after my one then they wont run, but aprat from that are there any other potential issues?
Hi Asif,
Could you elaborate on how you got this done?! I'm wrestling with it too.
Martin
This is my code, hope it helps you out. I have used a custom field setting, but later i found out i could have used
to replace my FieldMappings
Hi Asif,
It looks like you create a html form on the fly and auto-post it, right!?
I thought Tim said that workflows happen in the background, but he probably meant the pre-set workflows. So a custom workflow can work with the record data as well as redirect the user to another page.
Thanks a lot, I've downloaded the Development Manual and created a custom workflow. working with it now.
Martin
is working on a reply...