Disable add button in touch ui multifield
hi team,
May i know how to disable add button on coral 3 multi field in touch UI when it reaches the maximum limit?
hi team,
May i know how to disable add button on coral 3 multi field in touch UI when it reaches the maximum limit?
Hi,
You need to write code to achieve that e.g.
AEM - Touch UI Component Dialog Field Regex/Custom Validation
You can write this code on event of Add button
$inputEle = $("your multifield item")
var multiFieldItem = $inputEle.find("coral-multifield-item").size();
var multiFieldbutton = $inputEle.find(".coral-Button")
if (multiFieldItem > max) {
// disabled add button using javascript
multiFieldbutton.attr("disabled", "disabled");
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.