Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How can I alter Clientside Validation error message?
By default it is showing 'Firstname field is required.' as required field validation error.
I want to change it in to 'A response is required.'.
Without changing the core how can I do that? Please help me.
Comments
Comment #1
attiks CreditAttribution: attiks commentedThere're theme functions you can use, check the docs, or leave a comment if it isn't clear
Comment #2
ARUN AK CreditAttribution: ARUN AK commentedHi,
I altered the error message like this.
I added the following function in my theme's template.php:
Comment #3
ARUN AK CreditAttribution: ARUN AK commentedComment #4
hiranya CreditAttribution: hiranya commentedworked!