Changes

SmartCheck Validation

19 bytes removed, 17:38, 6 February 2023
SmartCheck Validation Structure
Example:  ssParseNumFromCurrency("10000,78","fr-CA",1,true) will return 10000.78
<pre>if(ssParseNumFromCurrency(form.getStr("cf_myCADcurrency"),"@sslocale@",1,true) > 5){ { result.isPassed=false; result.addMsg('Some message here'); }</pre>
For other currencies with format regardless of user's locale, such as DKK, it can be implemented as:<br /> ssParseNumFromCurrency(value,getLocalestrByCurrency('DKK'),1,true) OR ssParseNumFromCurrency(value,"da-DK",1,true)<br />''(getLocalestrByCurrency will get the "default" locale of the currency code)''
<pre>if(ssParseNumFromCurrency(form.getStr("cf_myDKKcurrency"),"da-DK",1,true) > 5){ { result.isPassed=false; result.addMsg('Some message here'); }</pre>
Recognize the If, Result, Message structure:
Smartstaff, administrator
3,576
edits