Changes

Jump to: navigation, search

SmartCheck Validation

787 bytes added, 22:28, 12 December 2018
m
Configuring Messages for Multilingual Systems
<pre>result.addMsg('cf_@field name.id@', 'Your message goes here.', 1); }</pre>
'''ImportantAnd the following is an example with multiple languages:''' The langid variable cannot be selectively applied to the messages, it must be included in every SmartCheck message within the system.
<pre>
if(((form.getStr("cf_Strategy").length() - form.getStr("cf_Strategy").replace(';','').length())>4))
{result.isPassed=false;
result.addMsg('cf_@Strategy.id@','You can pick up to 4 primary strategies you use.', 1);
result.addMsg('cf_@Strategy.id@','Puedes elegir 4 estrategias principales.', 14);
result.addMsg('cf_@Strategy.id@','Vous pouvez choisir à 4 stratégies primaires', 6);
result.addMsg('cf_@Strategy.id@','You can pick up to 4 primary strategies you use.', 11);//Russian
result.addMsg('cf_@Strategy.id@','Você pode escolher 4 estratégias primárias.', 16);
result.addMsg('cf_@Strategy.id@','You can pick up to 4 primary strategies you use.', 19);//Arabic
}
</pre>
'''Important:''' The langid variable cannot be selectively applied to the messages, it must be included in every SmartCheck message within the system.
=Examples=
Smartstaff
281
edits

Navigation menu