{"id":3881455,"date":"2013-06-27T13:56:11","date_gmt":"2013-06-27T13:56:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/hide-customs-fields-for-some-category\/"},"modified":"2016-08-21T02:23:56","modified_gmt":"2016-08-21T02:23:56","slug":"hide-customs-fields-for-some-category","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/hide-customs-fields-for-some-category\/","title":{"rendered":"Hide customs fields for some category"},"content":{"rendered":"<p>I would hide some customs fields for some category. For this i think add onchange() to select:<code>&lt;select name=&quot;category[]&quot; id=&quot;cat&quot; class=&quot;cat requiredField&quot; onchange(&#039;test&#039;)&gt;<\/code> but could not find where it could add. I find in the wpuf-add-post.php row(115) where is values for this category dropdown and i could add more clases, but could not add a javascript  like <strong>onchange(&#8216;test&#8217;)<\/strong> or simple &#8220;test&#8221;&#8230;<br \/>\nThanks for advice!<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/wp-user-frontend\/<\/p>\n","protected":false},"template":"","class_list":["post-3881455","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3881455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3881455\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3881455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}