Skip to content

Commit

Permalink
fix: Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AhashSritharan committed Dec 25, 2023
1 parent 2641c3f commit c6bba40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ formContext.data.entity.addOnSave(sample);
### With XrmEx:

```js
XrmEx.Form.addOnSaveEventHandler([sample]);
XrmEx.Form.addOnSave([sample]);
```
The XrmEx approach is more concise and offers a clearer intent, especially when registering multiple functions.

Expand All @@ -193,7 +193,7 @@ lastname.fireOnChange();
### With XrmEx:

```js
XrmEx.Form.addOnChangeEventHandler(
XrmEx.Form.addOnChange(
[fields.Firstname, fields.Lastname],
[sample],
true //fireOnChange
Expand Down
4 changes: 2 additions & 2 deletions READMEDOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ formContext.data.entity.addOnSave(sample);
### With XrmEx:

```js
XrmEx.Form.addOnSaveEventHandler([sample]);
XrmEx.Form.addOnSave([sample]);
```
The XrmEx approach is more concise and offers a clearer intent, especially when registering multiple functions.

Expand All @@ -157,7 +157,7 @@ lastname.fireOnChange();
### With XrmEx:

```js
XrmEx.Form.addOnChangeEventHandler(
XrmEx.Form.addOnChange(
[fields.Firstname, fields.Lastname],
[sample],
true //fireOnChange
Expand Down

0 comments on commit c6bba40

Please sign in to comment.