Changes

SmartCheck Validation

34 bytes removed, 17:41, 6 February 2023
Configuring Messages for Multilingual Systems
The message below would only be shown for the English language:
<pre>result.addMsg('Your message goes here.', 1); }</pre>
The langid could also be used for Field messages:
<pre>result.addMsg('"cf_@field name.id@'", 'Your message goes here.', 1); }</pre>
And the following is an example with multiple languages:
<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@'",'Você pode escolher 4 estratégias primárias.', 16); }</pre>
'''Important:''' The langid variable cannot be selectively applied to the messages, it must be included in every SmartCheck message within the system.
Smartstaff, administrator
3,576
edits