Title: Styles form : validation errors
Last modified: February 24, 2017

---

# Styles form : validation errors

 *  Resolved [darkstar123456](https://wordpress.org/support/users/darkstar123456/)
 * (@darkstar123456)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/styles-form-validation-errors/)
 * Hello,
 * I’m using your plugin for the first time, and I imported the Boostrap Styles.
 * I wanted to add my own (.h1 -> .h6, btw it could be a great addition ;-)) but
   when I try to submit the changes, it says that I have empty field values and 
   so it doesn’t save.
 * I suppose that what defines a Group of styles is the fact that they only have
   name and no other option (tag, class, styles) but still it says that it is not
   valid 🙁
 * I don’t know if I can post URL in here, but this is a screenshot of the issue:
   [http://i.imgur.com/7Lw3lz4.png](http://i.imgur.com/7Lw3lz4.png)
 * PS : Sorry for my bad English ^^

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

 *  Thread Starter [darkstar123456](https://wordpress.org/support/users/darkstar123456/)
 * (@darkstar123456)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/styles-form-validation-errors/#post-8843393)
 * From what I see from the code, it seems to used to have a input named “type” 
   to define the type of the row.
 * This type is present from json data, but not in the form. So when I submit the
   form, it uses the type “item” if no type is defined :
 *     ```
       // set default type
        if ( !isset($format['type']) ) {
       	$format['type'] = self::TYPE_ITEM;
        }
       ```
   
    -  This reply was modified 9 years, 3 months ago by [darkstar123456](https://wordpress.org/support/users/darkstar123456/).
 *  Plugin Author [Alex Prokopenko / JustCoded](https://wordpress.org/support/users/aprokopenko/)
 * (@aprokopenko)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/styles-form-validation-errors/#post-8861897)
 * It seems you should just enable “Type” field on Settings tab. After that all 
   will be fine.
    However I will check the import function. Because it should enable
   this field automatically.
 *  Plugin Author [Alex Prokopenko / JustCoded](https://wordpress.org/support/users/aprokopenko/)
 * (@aprokopenko)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/styles-form-validation-errors/#post-8862144)
 * In version 1.2 I added code to automatically enable this setting if it’s not 
   On.
 * Please try to upgrade, or you can manually turn it on.
 *  Thread Starter [darkstar123456](https://wordpress.org/support/users/darkstar123456/)
 * (@darkstar123456)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/styles-form-validation-errors/#post-8879689)
 * Thank you ! It works perfectly now 🙂 (and the auto enable works as well ^^)

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

The topic ‘Styles form : validation errors’ is closed to new replies.

 * ![](https://ps.w.org/just-tinymce-styles/assets/icon-128x128.png?rev=1470610)
 * [Just TinyMCE Custom Styles](https://wordpress.org/plugins/just-tinymce-styles/)
 * [Support Threads](https://wordpress.org/support/plugin/just-tinymce-styles/)
 * [Active Topics](https://wordpress.org/support/plugin/just-tinymce-styles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/just-tinymce-styles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/just-tinymce-styles/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [darkstar123456](https://wordpress.org/support/users/darkstar123456/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/styles-form-validation-errors/#post-8879689)
 * Status: resolved