Natea11 Posted December 19, 2012 Share Posted December 19, 2012 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")] Quote Link to comment Share on other sites More sharing options...
step Posted December 19, 2012 Share Posted December 19, 2012 Nope, try putting it in quotes: "toll free": Field("Toll Free"), Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.