Welcome Guest, Not a member yet? Register   Sign In
Form_validation error messages {value}?
#1

Hello,
Is it possible to use something like {value} in form_validation error messages?
Like {field} and {param} in the next message:
PHP Code:
$lang['form_validation_exact_length']    = 'The {field} field must be exactly {param} characters in length.'
Reply
#2

i think it can be handle by using call back seems like prevent same value inserted twice
Reply
#3

Yes callback takes value as parameter. Thanks. But is there an universal solution for all rules in lang file?
Reply
#4

No, since form_validation messages are usually displayed on the same form as the original values, and may be used in some cases to determine whether the values are safe, there is not currently (and there probably are no plans to add) a method of automatically including the value in the message.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB