Increasing number of textboxes in a form on demand

theabacus - July 8, 2008 - 02:20

I am creating a set of latitude and longitude textfields for a node creation input form. Some nodes may only have 1 set of lat/long coordinates, while others could have multiple sets.

I have seen forms (CCK modules) where the form is initially built with 1 text field with a "more values" button below that will add another text field when the users clicks it. I have done some research on Drupal, however, no matter what wording I use I end up with completely unrelated issues. Does anyone know of a page containing information on this subject? Any help is greatly appreciated.

this might help you:

Iumentum - July 8, 2008 - 12:28

Looks promising, appreciate

theabacus - July 10, 2008 - 00:23

Looks promising, appreciate the tip.

associated fields

KingMoore - July 10, 2008 - 00:50

Take a look at the proposed associated fields patches to CCK by gordon.

They are rather full on, but I believe they solve the problem you are describing.

 
 

Drupal is a registered trademark of Dries Buytaert.