Changes

SmartCheck Validation

168 bytes added, 17:37, 6 February 2023
SmartCheck Validation Structure
In the example below:
<pre>if(ssParseNumssParseNumFromCurrency(form.getStr("cf_Store Valuecf_myCADcurrency"),"@sslocale@",1,true) > 5){ result.isPassed=false; result.addMsg('Some message here');}if(ssParseNumFromCurrency(form.getStr("cf_myDKKcurrency"),"da-DK",1,true) > 5) { result.isPassed=false; result.addMsg('Some message here'); }</pre>
If custom field is a currency and the format will change based on different locales, use ssParseNumFromCurrency(value,locale,getnumtype,emptyok):
Smartstaff, administrator
3,576
edits