Picklist on web

Hi,

I am working on a web application.

On my Form I have a field Familly and another field SubFamilly.

Once I have chosen the Familly I need to propose a list of value for SubFamilly.

How can I do that ?

Have a nice day

Subject: Picklist on web

You need to create a form and populate values similar to how you call an address book on web.

Subject: I tend to use JavaScript…

Let’s say you have the two fields:

Family

SubFamily

Created two hidden (at the top of your Form) Computed Fields.

Family = Family

SubFamily = SubFamily

… so they compute to their own names.

Now, you can create HTML-based “controls” for those Fields:

  • using Computed Text.

Once you build your first Computed Text “picker” for Family, you will want to add an onchange function that sets the values of the SubFamily “picker”.

See, until it’s saved back to the UI, it’s literally just markup rendered to the browser… so there’s nothing stopping you from ripping and replacing that text via JavaScript to get it to do what you want.

Once you submit the form, a Domino Form will look to see if a submitted value of the Domino-generated HTML Form matches the name of a Field in the Design of that Form. Since you have the Family and SubFamily at the top of your Form (but hidden), it matches the new values of your Family and SubFamily Computed Text-based Fields to your NotesItems.

All you need is some JavaScript logic to set the dependent values based on the Family onchange selection.

For that: http://www.javascriptkit.com/javatutors/selectcontent.shtml

Hope this helps!

-Chris