Jump to content

2 word labels


Natea11

Recommended Posts

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")]

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...