Forum Replies Created
-
AuthorPosts
-
cambridgedonMember
I found the same problem. The issue is you need to clear setCustomValidity on input, so that is basically ‘rechecks’ each time, rather than just redisplaying the same message. Only fix I could find was hacking the core. In the file ‘views/generateField.php’ , change the following –
if ( ! empty( $field[‘regex’] ) )
$attr[‘pattern’] = $field[‘regex’];to
if ( ! empty( $field[‘regex’] ) ) {
$attr[‘pattern’] = $field[‘regex’];
$attr[‘oninput’] = “setCustomValidity(”)”;}
If you are using regex elsewhere (e.g. custom fields), you will also need to edit views/pro/generateProField.php and add ‘ $attr[‘oninput’] = “setCustomValidity(”)”;’ in the relevant places.
Hope it helps.
cambridgedonMemberAlready done that, and the phpinfo() shows the relevant changes.
Any other ideas? Can I email you with a login?
- This reply was modified 10 years, 4 months ago by cambridgedon.
October 14, 2013 at 7:09 pm in reply to: Custom field placeholder in E-mail notification not working #4393cambridgedonMemberI am also having this problem. The standard placeholders e.g. %user_login% etc are all working fine, as well as the contents of the standard usermeta array (e.g. %first_name% etc). I have custom metas such as ‘courseNumber’ which I have tried as:
%courseNumber%
%coursenumber%
%course_Number%
%course_number%all of which return blank. They are definitely saving fine in the database (I can see them in the MYSQL). I’ve looked into the function convertUserContent() and I can’t see anything wrong there. Any ideas?
- This reply was modified 11 years, 1 month ago by cambridgedon.
-
AuthorPosts