Getting The Currently Selected Item In A Listbox For Use By Lotusscript And Other Languages

If using R5, this is a very nice way to get the selected index of a list, for
use by formula, LotusScript, etc.:

Place the following code in the onChange() event of a listbox (replace the
field names with the names of your fields).

objForm = document.forms[0];

objForm.txtListSelectedIndex.value = objForm.lstListName.selectedIndex;

You can then use the value in the selectedIndex field to determine which
element is selected. This would also be possible on the web with previous
versions of Domino, but not in the R4 client.

Dig Deeper on JavaScript for Lotus Notes Domino



  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/ community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury