Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dynamicscode authored and dynamicscode committed Jun 25, 2019
2 parents 3045d7b + 8cb6cc1 commit 1e437b6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,32 @@ Xrm.Portal.Form.get(attributename).setRequired(bool, function, message); //A cus
Xrm.Portal.Form.get(attributename).attachOnChange(callback);
Xrm.Portal.Form.get(attributename).removeOnChange();
```
## Validations
### Regular Expressions
```
Xrm.Portal.Form.Validation.assertRegex(attributename, RegEx, message, [isRequired])
```
### Block past date
```
Xrm.Portal.Form.Validation.denyPastDate(attributename, message, [isRequired])
```

### Block future date
```
Xrm.Portal.Form.Validation.denyFutureDate(attributename, message, [isRequired])
```

### Compare main and sub. Main must be later than sub.
```
Xrm.Portal.Form.Validation.compareDates(mainattributename, subattributename, message, [isRequired])
```

### Set range to number
```
Xrm.Portal.Form.Validation.setNumberRange(attributename, min, max, message, [isRequired])
```

## User
```
Xrm.Portal.User.getAsync() => promise
```

0 comments on commit 1e437b6

Please sign in to comment.