From 655d0ff8302600d63b633ba764c4e1d70bf2fc2c Mon Sep 17 00:00:00 2001 From: Ryan Spain Date: Wed, 12 Aug 2020 21:59:02 +0100 Subject: [PATCH] Recognise support for default required message Recognise support for default required message when using a custom required function --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b63dd80..c852e2b 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Xrm.Portal.Form.get(attributename).setDisable(bool); ## Set required of an attribute ``` Xrm.Portal.Form.get(attributename).setRequired(bool); //Default - a default validation and a default message +Xrm.Portal.Form.get(attributename).setRequired(bool, function); //A custom validation and a default message Xrm.Portal.Form.get(attributename).setRequired(bool, function, message); //A custom validation and a custom message ``` ## Attach/Remove OnChange event of an attribute