{"id":58123,"date":"2015-12-08T05:48:20","date_gmt":"2015-12-08T10:48:20","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=58123"},"modified":"2016-02-24T02:32:16","modified_gmt":"2016-02-24T07:32:16","slug":"drupal-7-x-how-to-change-form-validation-messages","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/drupal-7-x-how-to-change-form-validation-messages.html","title":{"rendered":"Drupal 7.x. How to change form validation messages"},"content":{"rendered":"<p>\r\n<p>This tutorial shows how change form validation messages in Drupal 7.x.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=RI894X8JTdA?width=1280&amp;height=720\" rel=\"prettyPhoto\">Drupal 7.x. How to change form validation messages<\/a><\/p>\r\n<p>Once you submit the form without filling in all the required fields, you  get the error message that field is required.<\/p>\r\n<p>In order to change the form validation messages, you should do the following:<\/p>\r\n<ol>\r\n<li>\r\n<p>Log into your hosting cPanel or ftp.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Locate <strong>sites\/all\/themes\/themeXXX\/js<\/strong> folder.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Open <strong>jquery.loader.js<\/strong> file to edit:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_1-300x150.jpg\" alt=\"Drupal_7.x.How_to_change_form_required_fields_text_1\" width=\"300\" height=\"150\" class=\"aligncenter size-medium wp-image-58124\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_1-300x150.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_1-150x75.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_1-1024x512.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_1.jpg 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Locate <strong>Contact form tooltips<\/strong> section of the code and modify the messages:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_2-300x152.jpg\" alt=\"Drupal_7.x.How_to_change_form_required_fields_text_2\" width=\"300\" height=\"152\" class=\"aligncenter size-medium wp-image-58125\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_2-300x152.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_2-150x76.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_2-1024x520.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/Drupal_7.x.How_to_change_form_required_fields_text_2.jpg 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Save changes in the file.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=RI894X8JTdA?width=1280&amp;height=720\" rel=\"prettyPhoto\">Drupal 7.x. How to change form validation messages<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how change form validation messages in Drupal 7.x.<\/p>\n","protected":false},"author":60,"featured_media":58127,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[723],"tags":[593,907,640,1087,823,518,1025],"class_list":["post-58123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-drupal-tutorials","tag-drupal-2","tag-field","tag-form","tag-message","tag-required","tag-text","tag-validation"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/58123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=58123"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/58123\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/58127"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=58123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=58123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=58123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}