Skip to content

Commit 1e437b6

Browse files
dynamicscodedynamicscode
authored andcommitted
2 parents 3045d7b + 8cb6cc1 commit 1e437b6

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,32 @@ Xrm.Portal.Form.get(attributename).setRequired(bool, function, message); //A cus
2929
Xrm.Portal.Form.get(attributename).attachOnChange(callback);
3030
Xrm.Portal.Form.get(attributename).removeOnChange();
3131
```
32+
## Validations
33+
### Regular Expressions
34+
```
35+
Xrm.Portal.Form.Validation.assertRegex(attributename, RegEx, message, [isRequired])
36+
```
37+
### Block past date
38+
```
39+
Xrm.Portal.Form.Validation.denyPastDate(attributename, message, [isRequired])
40+
```
41+
42+
### Block future date
43+
```
44+
Xrm.Portal.Form.Validation.denyFutureDate(attributename, message, [isRequired])
45+
```
46+
47+
### Compare main and sub. Main must be later than sub.
48+
```
49+
Xrm.Portal.Form.Validation.compareDates(mainattributename, subattributename, message, [isRequired])
50+
```
51+
52+
### Set range to number
53+
```
54+
Xrm.Portal.Form.Validation.setNumberRange(attributename, min, max, message, [isRequired])
55+
```
56+
57+
## User
58+
```
59+
Xrm.Portal.User.getAsync() => promise
60+
```

0 commit comments

Comments
 (0)