We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36575
    • 104 Posts
    rachelmarama1 Reply #1, 13 years ago
    I have a registration form on xxx CLIENT SITE. I want to have a post hook snippet (php) written that will get some of the values in the form and then submit them to iContact.

    The information should only be submitted to iContact IF the checkbox below is ticked to yes.

    <input checked="checked" name="ReceiveOffers" type="Checkbox" value="Y" />

    The names in the registration form are set for creating a new user in Modx, but in some cases, I need the names to be changed for submission to iContact.

    For instance, id="fullname" in the Registration form needs to be submitted to the iContact form as name="fields_fname"

    The following are the fields from the Registration form, and what they need to be submitted to iContact as:

    id="fullname" value=[+fullname] name="fields_fname"
    id="lastname" value=[+lastname] name="fields_lname"
    name="StoreCity" value=[+StoreCity] name="fields_city"
    name="WeddingDay"
    name="WeddingMonth"
    name="WeddingYear" name="fields_weddingdate"


    In addition, the following hidden fields need to be submitted to iContact

    <input type=hidden name="listid" value="xxxx">
    <input type=hidden name="specialid:16599" value="xxxx">
    <input type=hidden name=clientid value="xxxx">
    <input type=hidden name=formid value="xxx">
    <input type=hidden name=reallistid value="xx">
    <input type=hidden name=doubleopt value="xxx">

    This is the form action URL:
    https://app.icontact.com/icp/signup.php

    Anticipated Start Time:
    ASAP

    Anticipated Job Duration:
    Unknown, please advise.

    Budget Constraints
    As duration is unknown, please advise.

    Payment Terms:
    100% on completion via Visa, Paypal or International Transfer

    Share with community:
    Yes - I want to be able to publish this in the forums to help others.
      • 36575
      • 104 Posts
      rachelmarama1 Reply #2, 13 years ago
      This is in Revolution 2.0.8 - Sorry - forgot that small, essential detail