Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Yan 36 posts 56 karma points
    Sep 20, 2010 @ 19:54
    Yan
    0

    using contour create donation form

    Did anyone use contour to create a donation form? I try to do a donation form has five steps:

    1. select donation type
    2. contact info donation amout etc details form
    3. Confirm page show user the info just enter from above 2 steps
    4. send info to the merchant gateway url to do the transaction
    5. If transaction sucessful, save the records and send a email, show the sucessful message. If transaction fail, direct to a transation fail page.

    Can contour form archive this?

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 20, 2010 @ 20:09
    Sebastiaan Janssen
    0

    Yes, it coudl work. However, the succesful message is usually sent asynchronously, so you'd need to update the record through the API of Contour, which is pretty easy to get into.

    Looks like: 

    - Dropdownlist

    - Some textfields for the information

    - A dropdownlist for the amount or a textbox with a regex to make sure the amount is valid

    - Confirmation page could be done by some custom workflow that opens a page with the submitted recordId so you can get the values from the form to show them

    - Send info to merchant could be a custom workflowtype

    - Create some custom code to use the succesful message to approve the form

  • Yan 36 posts 56 karma points
    Sep 20, 2010 @ 20:42
    Yan
    0

    Sebastiaan, Thanks for the fast reply. The current form is written in asp. When I doing the new site with umbraco, I try to use contour to covert the current donation form to the new umbraco site. I will try to create form and workflow with contour. And maybe ask more questions.

    Can contour create a hidden form feild?

     

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 20, 2010 @ 20:46
    Dirk De Grave
    0

    On your last question: http://umbraco.org/blog/2010/8/10/contour-11-is-out!

     

    Hope this helps.

    Regards,

    /Dirk

  • Yan 36 posts 56 karma points
    Sep 20, 2010 @ 21:12
    Yan
    0

    Thanks. Two more things:

    1. I not sure how to use contour to achive is this: base on the step one select donation type, in the step two some of form text feilds label will changes accordingly.

    2. using the contour add step process, if donation url has the donation type, can it directly go to step 2, skip step 1?

     

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 20, 2010 @ 21:19
    Sebastiaan Janssen
    0

    Ah, didn't know there was something variable in the form steps.. That's going to be quite tricky I guess, I'm not sure how I would set that up actually.

    But if you already have an existing form then why not just use that? I'm sure you can put it into a usercontrol and use it in Umbraco as a macro!

  • Yan 36 posts 56 karma points
    Sep 20, 2010 @ 22:14
    Yan
    0

    However, the exsiting form is written in .asp and ms access database. Put it into a usercontrol and connect to sql db, update the new tabel ect, I think I need recreate the form anyway.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 21, 2010 @ 08:39
    Sebastiaan Janssen
    0

    Hmm, yeah that would suck. 

    Well, you could always do it like this:

    Make a simple form with just the dropdown, then use a custom workflowtype (see the Contour Contrib project's source code for an example) to redirect to a different form based on the first form's value. 

  • Yan 36 posts 56 karma points
    Sep 22, 2010 @ 20:23
    Yan
    0

    - To get to Confirmation page if I create custom workflow that opens a page with the submitted recordId and get the values from the form to show data, if user confirmed then send the data to merchant, if click back then back to form.

    - If "Send info to merchant could be a custom workflowtype", how I make sure it only excute this workflowtype if confirm page post yes

    - "Create some custom code to use the succesful message to approve the form" - user control? or another custom worlkflow type?

    Please advise, I don't understand how contour workflowtype works. I have looked at contour contrib source code, but still didn't figure out how should I archive this donation form with contour.

    Thanks in advance!

Please Sign in or register to post replies

Write your reply to:

Draft