I'm trying to incorporate the below function to populate the value of my JSON data field 'groupName
'. - Anyway to incorporate this concept with a JSON file/field?
"Groups" : {
"groupName" : function makeid() {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < 5; i++)
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
},