Skip to content

Commit bb1f6c9

Browse files
disable template toggle for mandatory fields
1 parent f80efa3 commit bb1f6c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bfe.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,9 @@ bfe.define('src/bfe', ['require', 'exports', 'src/bfestore', 'src/bfelogging', '
17951795

17961796
if (rt.embedType != 'modal') {
17971797
// add in the on/off switch for making templates, pass it the uri|label combo as well so it knows to set it on off flag
1798-
$label.append(bfeusertemplates.returnToggleHTML(property.propertyURI+'|'+property.propertyLabel));
1798+
if (property.mandatory !== true && property.mandatory !== "true"){
1799+
$label.append(bfeusertemplates.returnToggleHTML(property.propertyURI+'|'+property.propertyLabel));
1800+
}
17991801
}
18001802

18011803
if ((/^http/).test(property.remark)) {

0 commit comments

Comments
 (0)