PWaddict Posted August 13, 2023 Share Posted August 13, 2023 Hi. I would like to replace the text "Missing required value" ONLY on frontend forms. Any idea how can I achieve that? Thanks in advance! Link to comment Share on other sites More sharing options...
PWaddict Posted August 14, 2023 Author Share Posted August 14, 2023 (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 August 22, 2023 by PWaddict Proper solution is to check for admin template 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now