We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20696
    • 18 Posts
    my eform id ding nothing. please advice.

    below is the code

    CHUNK - eFeedBackForm

    <form name="form1" method="post" action="[~[*id*]~]">
    <table width="500" border="0" cellspacing="2" cellpadding="1">
    <tr>
    <td colspan="4">Provide Departure Date, Rooms, and Kids Discounts, ina ddition
    to fields below</td>
    </tr>
    <tr>
    <input type="hidden" name="formid" value="feedbackForm" />
    <td width="114"><label accesskey="fn" for="firstname">First Name</label></td>
    <td width="144"><input type="text" name="firstname" maxlength="35" eform="Your First Name::1:Expected at least one word:#REGEX /\w+\b\w{1,}/i" /></td>
    <td width="97"><label accesskey="ln" for="lastname">Last Name</label></td>
    <td width="145"><input type="text" name="lastname" maxlength="35" eform="Your Last Name::1:Expected at least one word:#REGEX /\w+\b\w{1,}/i" /></td>
    </tr>
    <tr>
    <td><label accesskey="a" for="address">Address</label></td>
    <td><input type="text" name="address" maxlength="35" eform="Your Address::1:Expected at least two words:#REGEX /\w+\b\w{2,}/i" /></td>
    <td><label accesskey="c" for="country">Country</label></td>
    <td><input type="text" name="country" maxlength="35" eform="Your Country::1:Expected at least one word:#REGEX /\w+\b\w{1,}/i" /></td>
    </tr>
    <tr>
    <td><label accesskey="e" for="email">Your Email Address</label></td>
    <td><input type="text" name="email" maxlength="40" eform="Your Email Address:email:1" /></td>
    <td><label accesskey="a" for="phone">Phone</label></td>
    <td><input type="text" name="phone" maxlength="40" eform="Your Phone::1:Expected at least one word:#REGEX /\w+\b\w{1,}/i" /></td>
    </tr>
    <tr>
    <td><label accesskey="a" for="tour">Type of Tour</label></td>
    <td colspan="3"><input type="text" name="tour" maxlength="50" eform="Type of Tour::1:Expected at least two words:#REGEX /\w+\b\w{2,}/i" /></td>
    </tr>
    <tr>
    <td colspan="4"><label accesskey="c" for="comments">Comments Modify or combine
    tours; diet, health, mobility needs; travelling questions</label></td>
    </tr>
    <tr>
    <td colspan="4"><textarea cols="50" rows="8" name="comments" eform="Comments:html:1"></textarea></td>
    </tr>
    <tr>
    <td>Please enter the anti spam code below: </td>
    <td><img src="[+verimageurl+]" alt="verification code" border="1"/></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><label accesskey="c" for="vericode">Code</label></td>
    <td><input type="text" name="vericode" size="20" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><input type="submit" name="Submit2" value="Send Now"></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    </table>
    </form>

    CHUNK - eFeedbackReport
    <p>This is a response sent by [+Name+] using the feedback form on the website. The details of the message follow below:</p>
    <table>
    <tr valign="top"><td>First Name:</td><td>[+firstname+]</td></tr>
    <tr valign="top"><td>Last Name:</td><td>[+lastname+]</td></tr>
    <tr valign="top"><td>Address:</td><td>[+address+]</td></tr>
    <tr valign="top"><td>Country:</td><td>[+country+]</td></tr>
    <tr valign="top"><td>Email Address:</td><td>[+email+]</td></tr>
    <tr valign="top"><td>Phone:</td><td>[+phone+]</td></tr>
    <tr valign="top"><td>Type of Tour:</td><td>[+tour+]</td></tr>
    <tr valign="top"><td>comments:</td><td>[+comments+]</td></tr>
    </table>
    <p>You can use this link to reply: <a href="mailto:[+email+]?subject=RE:[+tours+]">[+email+]</a></p>


    CHUNK - eFeedBackThanks
    <h3>Thank you for your feedback</h3>
    <p>We know how you appreciate our ongoing efforts and thank you for your praise.
    We will take any suggestions you may have made to heart and will endeavor to
    respond to you in a timely manner. However as all office staff is attending
    our 4 week annual company retreat, this year held in the Costa Del Sol, we ask
    for your patience.</p>
    <p>Below is a copy of your message:</p>
    <table>
    <tr><td>Your First Name:</td><td>[+fisrtname+]</td></tr>
    <tr><td>Your Last Name:</td><td>[+lastname+]</td></tr>
    <tr><td>Your email address</td><td>[+email+]</td></tr>
    <tr valign="top"><td>Your comments</td><td>[+comments+]</td></tr>
    </table>

    SNIPPET CALL
    [!eForm? &formid=`feedbackForm` &to=`[email protected]` &tpl=`eFeedBackForm` &report=`eFeedbackReport` &thankyou=`eFeedbackThanks` &vericode=`1` &subject=`Web site Enquiries`!]
      • 18367
      • 834 Posts
      Here’s one thing:

      Don’t know if it’s just the formatting of this forum, but for your snippet call make sure it’s all on one line in your editor.

      That drove me nuts trying to figure that one out.

      EG:

      [!eForm? &formid=`feedbackForm` &to=`[email protected]` &tpl=`eFeedBackForm` &report=`eFeedbackReport` &thankyou=`eFeedbackThanks` &vericode=`1` &subject=`Web site Enquiries`!]
        Content Creator and Copywriter
        • 6726
        • 7,075 Posts
        Indeed with 0.9.6.x you can’t use line returns in your calls, but Revolution’s parser can for the record.

        Since it’s solved, I switch the title to [Solved].
        Also moving this to the appropriate forum.
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l&#39;outil id
          • 18367
          • 834 Posts
          Hi Mut,

          since you’ve marked it as solved, could you tell us what you did to fix it?

          It just helps those that come after with similar problems.

          laugh
            Content Creator and Copywriter
            • 6726
            • 7,075 Posts
            I think what he did what just get rid of line returns in his snippet call
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l&#39;outil id
              • 20696
              • 18 Posts
              sorry guys for my slow response. quite busy lately.

              i have not been able to sort it out. I still cannot get the code EG pasted for me in a straight line. when i copy and paste it continues in to the second line.

              sorry problem not yet solved.

                • 6726
                • 7,075 Posts
                Now that I have read your first post in detail, there is something wrong with your form : it has no id !

                As explained in eForm’s doc :

                &formid
                This is a unique id used to identity a form during postbacks. This is useful in cases where more than one form exists on a page. Your form template should either have a hidden field with the same formid <input type="hidden" name="formid" value="formName" />or (in eForm 1.4:final) you can set the the id in the form tag itself: <form id="formName"...>;

                You have to have an id matching the one specified in your eForm call, in your case "feedbackForm". Instead of

                [tt]<form name="form1" method="post" action="[~[*id*]~]">[/tt]

                You must write

                [tt]<form name="form1" id="feedbackForm" method="post" action="[~[*id*]~]">[/tt]

                I think it could solve your problem...
                  .: COO - Commerce Guys - Community Driven Innovation :.


                  MODx est l&#39;outil id
                  • 36592
                  • 970 Posts
                  Quote from: davidm at Aug 29, 2008, 10:44 AM

                  You must write
                  [tt]<form name="form1" id="feedbackForm" method="post" action="[~[*id*]~]">[/tt]
                  At first glance I thought this is the problem.
                  But there’s this line in the chunk
                  <input type="hidden" name="formid" value="feedbackForm" />

                  so this might not be the problem...
                    • 6726
                    • 7,075 Posts
                    I didn’t see that.... good point...
                      .: COO - Commerce Guys - Community Driven Innovation :.


                      MODx est l&#39;outil id