Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Validator Error Message & Localization

$
0
0
Hi,

I've configured the following validator in the xml :

Code:

<field name="NAME" type="text" title="$name" required="true">
<validators>
 <validator type="regexp" expression="^[^()!?:;,#~]*$" requiresServer="true" errorMessage="The name contains invalid characters."/>
 </validators>   
</field>

We would like to be able to 'localize' the error message... i.e, put a key instead which will be dynamically translated on the client side, using the client's locale.

Any advice about how we could achieve this using your API's would be greatly appreciated!

Thanks,
Thomas

Viewing all articles
Browse latest Browse all 4756

Trending Articles