• Hi,

    When I submit a form to create a post, the checkboxes do not show up as data in the post. How do I set up the checkboxes so this works? BTW, custom fields submitted work.

    Here’s the basic code:

    [fu-upload-form suppress_default_fields="true" form_layout="post_image" append_to_post='true' category='2']
    
    [checkboxes values="value:Description,124:Banana,cherry:Cherry"]
    
    [input type="submit" class="btn" value="Submit"]
    
    [/fu-upload-form]

    Thanks,

    Dean

    https://www.ads-software.com/plugins/frontend-uploader/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rinat

    (@rinatkhaziev)

    Hey Dean,

    Can you install https://www.ads-software.com/plugins/post-meta-inspector/ and screeshot/paste what you see here?

    Thread Starter frankin-grep

    (@boulderpoet)

    Hi Rinat,

    for the simple form below, I get this

    Key                  Value
    _edit_lock      '1469485807:1'

    The form

    [fu-upload-form suppress_default_fields="true" form_layout="post_image" append_to_post='true' category='2']
    [checkboxes values="value:Description,124:Banana,cherry:Cherry"]
    <div class="g-recaptcha" data-sitekey="hidden_key_data_here"></div>
    [input type="submit" class="btn" value="Submit"]
    [/fu-upload-form]

    Thanks,

    Dean

    Plugin Author Rinat

    (@rinatkhaziev)

    it seems that your shortcode is missing name argument, it should be something like

    [fu-upload-form suppress_default_fields="true" form_layout="post_image" append_to_post='true' category='2']
    [checkboxes name="my_meta_key" values="value:Description,124:Banana,cherry:Cherry"]
    <div class="g-recaptcha" data-sitekey="hidden_key_data_here"></div>
    [input type="submit" class="btn" value="Submit"]
    [/fu-upload-form]
    Thread Starter frankin-grep

    (@boulderpoet)

    Thank you. That fixed it so checkboxes show up in Post Meta Inspector:

    Key                        Value
    my_name              'John Smith'
    test_checkboxes  'a:1:{i:0;s:9:"agreement";}'

    But then that field does not show up in the post as a custom field. Whereas your other fields like text and select dropdown do show up as custom fields after I submit the form.

    How do I get checkboxes to show up as a custom field after form submission?

    Thanks,

    Dean

    Thread Starter frankin-grep

    (@boulderpoet)

    Hi Rinat,

    To get checkbox data to show up on my post page, do I need to use a plugin like MetaBox?
    https://metabox.io/docs/getting-started/

    What would you recommend?

    Best,

    Dean

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Check boxes data not submitting to post’ is closed to new replies.