Allow values not in list for keywords field on Web

This tip describes how to allow values not in list for keywords field on Web

Have you ever wanted to offer a web user a keywords field (e.g. a combobox), but allow the user to enter a value not in the list? Here is a way to do it.

Suppose your keywords field is called categories and it is a combobox field. Place a button next to the field labelled "Unlisted value", for instance and enter the following code:

var newValue = prompt("Enter unlisted value","");
if(typeof newValue == "string") {
 var categories = this.form.Categories;
 categories.options[categories.length] = 
new Option(newValue, newValue, true, true)

(Note this only works on the web, not in the Notes client.)

Dig Deeper on JavaScript for Lotus Notes Domino

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...