We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40097
    • 19 Posts
    Ive looked at the documetation and several blogs..
    The pages are not cached.
    Here is the formit aspect on page one. ( which is in chunk, as this shows in the footer of every page.)
    [[!FormIt? 
      &hooks=`spam,redirect` 
      &store=`1`
      &redirectTo=`9` 
      &validate=`emailaddress:required:email` 
      &spamEmailFields = `emailaddress`
    ]]
    			<div id="footer-left">
    				<h2>Stay up to date!</h2>
    
    				<p>Join our mailing list .....[[!+fi.validation_error_message]] </p>
    					<form action="[[~[[*id]]]]" method="post">
    				<div id="email-address"> 
    						<input type="text" name="emailaddress" class="bg" id="emailaddress" >
    				</div><!--end #email-address-->
    				<div id="sign-up">
    					<input type="submit" value="Sign Up!" id="sign-up"/>
    				</div><!--end #sign-up-->
    <input type="hidden" name="sourceid" value="0">
    				</form>
    			</div><!--end #footer-left-->
    


    Then on the second page(9), i want to ask for more from the email list sign up, this code is in the content of the page.
    [[!FormItRetriever &redirectToOnNotFound=`7`]]
    [[!FormIt? 
      &hooks=`spam,email,redirect` 
      &redirectTo=`10` 
      &validate=`emailaddress:required:email` 
      &spamEmailFields = `emailaddress`
      &emailTpl=`ConfirmEmailWithLink`
      &emailSubject=`Please Confirm Your Email Address`
      &emailTo=`[[+emailaddress]]`
      &emailReplyTo=`[email protected]`
    ]]
    
    <h2>Just a little more info, please.</h2>
    
    				<p>[[!+fi.validation_error_message]] </p>
    					<form action="[[~[[*id]]]]" method="post">
    				<div id="email-address"> 
    						Email Address : <input type="text" name="emailaddress" class="bg" value="[[+fi.emailaddress]]" id="emailaddress" />
    	
    				</div><!--end #email-address-->
    				<div id="first-name"> 
    						First Name : <input type="text" name="firstname" class="bg" value="[[+fi.firstname]]" id="firstname" />
    	
    				</div><!--end #first-name-->
    				<div id="last-name"> 
    						Last Name : <input type="text" name="lastname" class="bg" value="[[+fi.lastname]]" id="lastname" />
    	
    				</div><!--end #last-name-->
    				<div id="phone-number"> 
    						Phone Number : <input type="text" name="phonenumber" class="bg" value="[[+fi.phonenumber]]" id="phonenumber" />
    	
    				</div><!--end #phone-number-->
    
    				<div id="sign-up">
    					<input type="submit" value="Sign Up!" id="sign-up"/>
    				</div><!--end #sign-up-->
    				</form>
    


    I have looked at this for 3 hours, I have no idea why the FormItRetriever does't not do what it designed to do.
    modx rev 2.2.8
    formit 2.2.0

    Thanks for your help.
      • 12028
      • 152 Posts
      In your first form you are missing the value of the fi.emailaddress:
      <input type="text" name="emailaddress" class="bg" value="[[+fi.emailaddress]]" id="emailaddress" />


      In the second form you are missing a question mark in:
      [[!FormItRetriever &redirectToOnNotFound=`7`]]

      It should be:
      [[!FormItRetriever? &redirectToOnNotFound=`7`]]
        - A small step for mankind, so why not take two...

        Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!