Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Davis 56 posts 74 karma points
    Mar 31, 2011 @ 05:29
    Chris Davis
    0

    Checkbox fields don't email properly in IE, Firefox

    Jon,

    I just noticed that checkbox selections are not being emailed properly in all browsers except Chrome. The email that is sent to the site owner shows all checkbox fields as "on", when infact they were not selected.

    I have tested this on Windows Firefox 3.5, IE 7 & 8, and Mac Firefox 3.6. It works fine on Chrome.

    I know it's a long shot, but if this could get fixed by tomorrow it would be a huge help (I'm launching a site tomorrow evening). I wouldn't mind throwing a little donation your way.

    Also, I was suppose to help style the emails a while back but have not had the chance. I usually put a fixed width on the columns and a light alternating background. If you're up to I can give a quick mockup or some HTML.

    Thanks Jon, great work.

  • Jon Cuthbert 84 posts 173 karma points
    Mar 31, 2011 @ 15:53
    Jon Cuthbert
    0

    Wow, that's a pretty big deal. To fix it, try to add this to line 44 of PliableForm.js:

    else if(this.type == "checkbox") {
    data[x] = this.checked;
    }

    I'll come out with a new package as soon as I can and maybe add some style to the submitted email. Not for sure that it will be tonight tho.

    Jon

     

  • Jon Cuthbert 84 posts 173 karma points
    Mar 31, 2011 @ 15:56
    Jon Cuthbert
    0

    to make sure you know where to put it, here is new code insert with the context:

          else if(this.type == "select-one") {
            data[x] = this.options[this.selectedIndex].value;
          }
          else if(this.type == "checkbox") {
            data[x] = this.checked;
          }
          else {
            data[x] = this.value;
          }
  • Chris Davis 56 posts 74 karma points
    Mar 31, 2011 @ 20:01
    Chris Davis
    0

    Thanks Jon. I will test this a little later and let you know.

  • Jon Cuthbert 84 posts 173 karma points
    Mar 31, 2011 @ 20:07
    Jon Cuthbert
    0

    BTW, it's going to show true/false now not on/off.

    Jon

  • Chris Davis 56 posts 74 karma points
    Apr 01, 2011 @ 00:39
    Chris Davis
    0

    It works great Jon, thanks for the quick fix.

  • Jon Cuthbert 84 posts 173 karma points
    Apr 07, 2011 @ 06:23
    Jon Cuthbert
    0

    This is now updated in Pliable Form 1.2

Please Sign in or register to post replies

Write your reply to:

Draft