Title: Label code not correct
Last modified: August 21, 2016

---

# Label code not correct

 *  Resolved [Q Dawg](https://wordpress.org/support/users/q-dawg/)
 * (@q-dawg)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/label-code-not-correct/)
 * Your <label> tags aren’t being output correct.
 * On line 134 of the form-output.php file you need to change:
    `$for = !in_array(
   $field_type, array( 'checkbox', 'radio', 'time', 'address', 'instructions' ) )?'
   for="%4$s"' : '';`
 * to
 * `$for = !in_array( $field_type, array( 'checkbox', 'radio', 'time', 'address','
   instructions' ) ) ? '%4$s' : '';`
 * Please update your plugin.
 * [http://wordpress.org/plugins/visual-form-builder/](http://wordpress.org/plugins/visual-form-builder/)

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

 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/label-code-not-correct/#post-4148811)
 * The label code is correct. If you look at the form output for those items, you’ll
   see that it’s not on the field name but on the options themselves. As it should
   be.
 *  Thread Starter [Q Dawg](https://wordpress.org/support/users/q-dawg/)
 * (@q-dawg)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/label-code-not-correct/#post-4148812)
 * Sorry I guess i should have explained the problem better.
 * Your plugin is outputting label code that looks like this:
    `<label for=" for
   ="vfb-5"" class="vfb-desc">`
 * It should look like this:
    `<label for="vfb-5" class="vfb-desc">`
 * My change for line 134 fixes that.
 * Your plugin is great other than that small issue.

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

The topic ‘Label code not correct’ is closed to new replies.

 * ![](https://ps.w.org/visual-form-builder/assets/icon-256x256.png?rev=1205840)
 * [Visual Form Builder](https://wordpress.org/plugins/visual-form-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-form-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-form-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-form-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-form-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-form-builder/reviews/)

## Tags

 * [label](https://wordpress.org/support/topic-tag/label/)

 * 2 replies
 * 2 participants
 * Last reply from: [Q Dawg](https://wordpress.org/support/users/q-dawg/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/label-code-not-correct/#post-4148812)
 * Status: resolved