Wondering if it's possible to have a label that's two words. Ex. toll free:
Every time I try to validate this, I get a SyntaxError: missing : after property id on line 6
Here's my rule:
var labels =
{
phone: Rule("Phone Rule"),
mobile: Rule("mobile rule"),
fax: Rule("Fax Rule"),
toll free: Field("Toll Free"),
email: Field("Email Address"),
};
var result = [];
for (var l in labels)
{
if (labels[l])
result.push(l + ": " + labels[l]);
}
return [result.join("\n")]