A validate rule in an offline-enabled application that is not referenced by a flow rule in the user interface is not packaged, by default. You must add validate rules to a whitelist for offline use so that these rules are used in custom JavaScript code.
To package additional validate rules for offline use in JavaScript custom code, you must explicitly add validate rule definitions to the pyValidateWhitelistForOffline rule as either the pxInsName string of the validate rule or, if you need to add multiple validate rules, a list of pxInsName strings, each separated by a new line.
The pxInsName string consists of the name of the validate class appended to the validate rule name, separated by an exclamation mark (!). For example, if the class name for the validate rule is MY-VR-SAMPLE-WORK-MYCASE
and the validate rule is called SampleVR, the pxInsName string for this validate rule is:
MY-VR-SAMPLE-WORK-MYCASE!SampleVR
To add validate rules to a whitelist for offline use:
@baseclass
class.