diff --git a/profile/profileReplaceFaxEdit.js b/profile/profileReplaceFaxEdit.js index 74672dc..aca37ee 100644 --- a/profile/profileReplaceFaxEdit.js +++ b/profile/profileReplaceFaxEdit.js @@ -11,7 +11,7 @@ if (typeof (dojo) != "undefined") { // Change fax number label var faxNo = dojo.query("label[for='faxNumber']"); if (faxNo.length > 0) { - faxNo.innerHTML = "NMC / HCPC"; + faxNo[0].innerHTML = "NMC / HCPC"; } else { console.log('Query failed'); } diff --git a/profilev2/profileCustomisation.js b/profilev2/profileCustomisation.js new file mode 100644 index 0000000..4fe7d8c --- /dev/null +++ b/profilev2/profileCustomisation.js @@ -0,0 +1,33 @@ +//// +// @author Tony McGuckin, IBM +// @name Profiles Customization +// @version 0.1 +// @date February, 2017 +// +// Copied from samples +// +if (typeof (dojo) != "undefined") { + var selects = dojo.query("select[id='phone1.label']"); + if (selects.length > 0) { + var opts = selects[0].options; + opts.length = 0; + opts[0] = new Option("NMC / HCPC","NMC / HCPC",true, false); + } else { + console.log('Query failed'); + } + + var input = dojo.query("input[id='phone1']"); + if (input.length > 0) { + var currValue = input[0].value; + var newSelect = '