Jump to content

[SOLVED] How to replace "Missing required value" text ONLY on frontend forms?


Recommended Posts

Posted (edited)

I found the solution with wireLangReplacements() function.

/**
 * Replace "Missing required value" text ONLY on frontend
 *
 */
if($page->template->name != "admin") {
  wireLangReplacements([
    'Missing required value' => 'My replacement value',
  ]);
}

 

Edited by PWaddict
Proper solution is to check for admin template
  • Like 2
  • PWaddict changed the title to [SOLVED] How to replace "Missing required value" text ONLY on frontend forms?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...