Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Thanked 0 Times in 0 Posts

    Post HELP to Create Custom Form Handler

    1) Project Details: (be as specific as possible):

    I need a form on my website to collect 4 fields and I then need to act on them.

    I have used FrontPage Extensions to handle all my forms in the past and send myself an E-mail. I then take that information and import a contact into Outlook and enter them into my SMS/E-mail providers site. I now need to expand on that and automate this process.

    I want to capture First Name, Last Name, E-mail address and Birthday. I then want to send an e-mail letting us know someone has signed up. I want to then add that info into a contact record in Outlook 2007 into a specific category. I also want to do an http-post to Trumpia.com 's API to add the contact and then add the person to a distribution list. I have an API key to add the contact to Trumpia using an http-post but do not know how to set it all up.

    I currently use GoDaddy Hosting on a Windows server with Front Page extensions. After eliminating the need for Front Page Extensions (to handle the sign up form I currently use) I would like to migrate this domain hosting to HostGator.

    2) Payment Amount:
    3) Payment method/ details (Paypal, check? Timeline?):
    PayPal after script completion and testing.
    4) Additional Info (about project or potential bidders):

  2. #2
    New to the CF scene
    Join Date
    Apr 2011
    Thanked 0 Times in 0 Posts
    You can use such type of code in your note and save this file as .html
    use HTML::FormHandler::Moose;
    extends 'HTML::FormHandler';

    has '+item_class' => ( default => 'User' );

    has_field 'name' => ( type => 'Text' );
    has_field 'age' => ( type => 'PosInteger', apply => [ 'MinimumAge' ] );
    has_field 'birthdate' => ( type => 'DateTime' );
    has_field 'birthdate.month' => ( type => 'Month' ); # Explicitly split
    has_field 'birthdate.day' => ( type => 'MonthDay' ); # fields for renderer
    has_field 'birthdate.year' => ( type => 'Year' );
    has_field 'hobbies' => ( type => 'Multiple' );
    has_field 'address' => ( type => 'Text' );
    has_field 'city' => ( type => 'Text' );
    has_field 'state' => ( type => 'Select' );
    has_field 'email' => ( type => 'Email' );

    has '+dependency' => ( default => sub {
    [ ['address', 'city', 'state'], ]


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts