We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5924
    • 0 Posts
    I was missing
    tags in my report. rolleyes

    Thanks Bunk! Working excellent now!
      • 5924
      • 0 Posts
      Having problems with validation on Radio and Checkbox parts of all my forms. The radio button will only allow 1 of 2 values succeed. The checkboxes won’t validate at all (with 1 or all checked).

      Radio:
      	<div class="contactRow">
      		<label for="newsletter" class="whiteP">*eNewsletter Subscription?
      	</div>
      	<div class="floatL" style="padding-top:14px;">
      	      <input type="radio" name="newsletter" value="Yes, sign me up for the newsletter" eform="Newsletter Subscription::1" />
      			Yes
      	      <input type="radio" name="newsletter" value="No, I'm not interested in the newsletter" />
      			No
      	</div>



      Checkbox:
      	
      	<div class="contactRow">
      		<label for="sports" class="whiteP">*What sports are you interested in?</label>
      	</div>
      	<div class="floatL">
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Alpine Skiing" eform="Select a sport::0" />
      			Alpine Skiing 
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Aquatics" />
      			Aquatics
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Athletics" />
      			Athletics
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Basketball" />
      			Basketball
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Bowling" />
      			Bowling
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Cycling" />
      			Cycling
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Figure Skating" />
      			Figure Skating
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Golf" />
      			Golf
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Powerlifting" />
      			Powerlifting
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Snowboarding" />
      			Snowboarding
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Soccer" />
      			Soccer
      		</p>
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Softball" />
      			Softball
      		</p>	  
      		<p style="padding-bottom: 0px;">
      	      <input type="checkbox" name="sports[]" value="Speed Skating" />
      			Speed Skating
      		</p>
      	</div>
      	
      	<div class="clear">
      	</div>


      Sorry for posting a lot hehe. These also worked before I updated to the eform beta.
        • 4310
        • 2,310 Posts
        It seems as if the problem might be something to do with my integration of the mod’s by PMS, but I can’t find it.
        So, I’ve attached a new version of eform.inc.php which has the SMTP & Config additions without the security mod’s.
        Successfully tested it with radio & checkbox fields.
          • 5924
          • 0 Posts
          It worked flawlessly!

          Just out of curiosity, what turning off that effect?
            • 4310
            • 2,310 Posts
            The PMS mod’s were for better security against form value injection.
            When/If I get time I’ll have another look at it.
              • 5924
              • 0 Posts
              Quote from: bunk58 at Jun 28, 2011, 04:25 PM

              The PMS mod’s were for better security against form value injection.
              When/If I get time I’ll have another look at it.

              Thanks again for the help!
              • Hi David,

                Just checking how this is going I am looking to upgrade a site running eForm and was wondering if your additions got merged into the main eForm release?

                Thanks aaron
                  http://www.onesmarthost.co.uk
                  UK MODX Hosting with love.
                  • 42568
                  • 1 Posts
                  Hi Bunk58

                  I am having issues with the file in that it gives me a version mismatch between eform.inc.php and eform.snippet.php

                  version of Modx is 1.0.8

                  Thanks
                  James
                    • 4310
                    • 2,310 Posts
                    I got this...

                    WARNING! The version of the eForm snippet (version: 1.4.4) is different from the included eForm file (version: 1.4.4.7). Please make sure you use the same version for both.

                    When I didn't update the snippet code in the manager with what's in assets/snippets/eform/eform.snippet.php
                    After I did, all was well.

                    Quote from: jgreenough at Jan 22, 2013, 08:39 AM
                    Hi Bunk58

                    I am having issues with the file in that it gives me a version mismatch between eform.inc.php and eform.snippet.php

                    version of Modx is 1.0.8

                    Thanks
                    James