• Resolved David Frank

    (@bitinn)


    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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    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.

    Thread Starter David Frank

    (@bitinn)

    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).

    Thread Starter David Frank

    (@bitinn)

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

    Plugin Author Mike Walsh

    (@mpwalsh8)

    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.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    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.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: WordPress Google Form] Checkbox handling is incorrect’ is closed to new replies.