Friday, November 4, 2011

1-2-3: Quickly add null value choices to combo boxes

Many times I need a combo box or radio button group that filters something (view control or repeat control etc.) and the choices for the user need to be...

North America
Latin America

The problem is if they choose "All", I really just want a null string returned (since "All" is not a continent) so this is what I need the values to be...

North America
Latin America

Domino Designer does not make it easy to add a choice that has a value of "" so I trick Designer into doing the work for me.

1. I add All as a choice;

2. I put a space in for the value;

3. I go to the source and just remove the extra space Designer added;

Quick, easy, works like a champ.