You can add your own validation rules to your form.
$.fn.form.settings.rules.myCustomRule = function(param) {
To pass parameters to a rule, use anchor notation in the settings object.
rules: [ { type : 'myCustomRule[param]', prompt : 'Custom Error' } ]
Here is the document Adding a Custom Validation Rule in Semantics
source share