Use Commas In Labels For Keyword Fields On The Web

Did you ever had a client wanting you to program a Notes form with radio
buttons, one (or more) of which MUST contain a comma? I had. And of course,
Notes splashed me this message telling me that commas were forbidden in keyword
fields... So what?

If your field should only be displayed on the Web, there's a not-so-nice way to
do it. Instead of the comma, include this code: [<!-- -->,<!-- -->]

The [< ... >] tells Domino to directly use the enclosed HTML code.
In order that the HTML code stays valid, and does not influence further
rendering, I used the less-than and greater-than characters as part of HTML
comment tags.
And the whole thing resides in HTML-encoding of the comma character: ,
In the value list of the keyword field, I have something like that:

First case | 1
Second[<!-- -->,<!-- -->] Third and Fourth cases | 234
Fifth case | 5

And this renders on the web as follows:

( ) First case
( ) Second, Third and Fourth cases
( ) Fifth case

This was first published in November 2000

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.