Forums

WordPress Google Form
[resolved] Checkbox handling is incorrect (7 posts)

  1. David Frank
    Member
    Posted 4 months ago #

    Hi mpwalsh8,

    First of all, nice plugin, knew somebody would have done this already so i can save a few hours coding one.

    Not sure if you know this constraint in php, and i assume google form use python so they use name="entry.8.group", but for php it needs to be name="entry.8.group[]", otherwise php don't know it's an array of value, but take the last value of the group instead.

    This is why when i got a checkbox group vote it only take a last value as result. :)

    Also for building the select list, it should be selected, not checked.

    Regards,
    bitinn

    http://wordpress.org/extend/plugins/wpgform/

  2. mpwalsh8
    Member
    Posted 4 months ago #

    It was actually pretty complicated to fix this. PHP (used by WordPress) and Python (used by Google Forms) handle parameter arrays differently. This problem is fixed in v0.16.

  3. David Frank
    Member
    Posted 4 months ago #

    nice fix on passing argument, on my side I end up working around it by modifying how wp_remote_post works (change core, which is a bad idea).

  4. David Frank
    Member
    Posted 4 months ago #

    actually, i think you forget to re-populate the checkbox (for incomplete submission)?

  5. mpwalsh8
    Member
    Posted 4 months ago #

    If you're seeing the checkbox not retain its state either after a submission or when you page forward and back on a multi-page form, I need to see the example. The one I have been testing with works correctly for checkboxes although it is certainly possible there is another combination I haven't accounted for.

  6. mpwalsh8
    Member
    Posted 4 months ago #

    I have fixed a bug which I believe was the root cause of the behavior you described. Please try the new v0.18 release and let me know if you are still seeing the problem.

  7. mpwalsh8
    Member
    Posted 2 months ago #

    There was another bug with checkboxes not retaining the proper values which was fixed in v0.25. The bug only occurred in conjucntion with the prefix='mygform-' attribute.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags