{"id":437,"date":"2010-12-20T09:58:30","date_gmt":"2010-12-20T09:58:30","guid":{"rendered":""},"modified":"2021-06-23T11:49:06","modified_gmt":"2021-06-23T03:49:06","slug":"add-reset-button-drupal-form","status":"publish","type":"post","link":"https:\/\/www.munmon.com\/v3\/2010\/12\/20\/add-reset-button-drupal-form\/","title":{"rendered":"Add reset button to Drupal Form"},"content":{"rendered":"\n<p>Drupal by default does not have reset button. However, you may just add reset button by adding this code in form array.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$form&#91;'reset'] = array (\r\n\t\t'#type' => 'markup',\r\n\t\t'#value' => '&lt;input class=\"form-button\" type=\"reset\" value=\" Reset \" \/>',\r\n\t\t);<\/code><\/pre>\n\n\n\n<p>Simple as that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Drupal by default does not have reset button. However, you may just add reset button by adding this code in form array.&hellip;  <\/p>\n<p class=\"more-link\"><a href=\"https:\/\/www.munmon.com\/v3\/2010\/12\/20\/add-reset-button-drupal-form\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_wp_rev_ctl_limit":""},"categories":[155],"tags":[],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-munmonlisme"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4NeyD-73","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.munmon.com\/v3\/wp-json\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.munmon.com\/v3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.munmon.com\/v3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.munmon.com\/v3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.munmon.com\/v3\/wp-json\/wp\/v2\/comments?post=437"}],"version-history":[{"count":0,"href":"https:\/\/www.munmon.com\/v3\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.munmon.com\/v3\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.munmon.com\/v3\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.munmon.com\/v3\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}