You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(functionexecuteRule(current,previous/*null when async*/){
2
+
/*
3
+
table: sp_widget
4
+
when: Before
5
+
operation: insert & update
6
+
condition : Body HTML Template Changes.
7
+
This BR will check if standard internationalisation is not followed, this is required for multi lingual portals and is flagged in health scan.
8
+
*/
9
+
varreg=/>([a-zA-Z].*)<\//;// regex to check if strings are directly added in HTML Template
10
+
varregex=newRegExp(reg);
11
+
if(regex.test(current.getValue('template'))){
12
+
gs.addInfoMessage("Please use standard inernationalisation methods for strings like ${string} or define the string in server using gs.getMessage('string')");
0 commit comments