Auto generating textfield - data type Options
rorythecheese
Posted: Friday, November 28, 2008 6:10:09 PM

Rank: Enthusiast

Joined: 2/15/2008
Posts: 40
Location: London, England

~Not sure what the best way to describe this is or what the technical name is but...

Is there already or is it possible to create a Data Type that could automatically generate an infinate amount of textfields?

For example :
At the moment if i want to add 10 email addresses to display i would create 10 fields in the doc type with aliases email1, email2, email3 etc.. upto email10. whcih is a bit of a pain in the arse especially since i may not know whether someone wants to add 1, 10 ior 100 emails. I could do it with a child of the current node, like a gallery or news articles.
But.
What i would like is that to start with 1 input textfield with a button next to it saying "add" (or something similar) then once clicked a new blank text field would generate below it (using javscript i guess) . So by clicking "add" it would auto generate an un-predefined number of fields. So one could easily add any number of email addresses without having to define the amount before hand. keeping it fully dynamic.

Anyone know if this is already available in some package or whether such a thing could be created.?

cheers =)
tim
Posted: Friday, November 28, 2008 6:21:02 PM

Rank: Addict

Joined: 2/19/2007
Posts: 822
Location: Belgium
Haven't seen anything like that around. But it is definitly possible to create. Check out http://www.nibble.be/?p=50 to get started

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
rorythecheese
Posted: Monday, December 01, 2008 4:12:57 PM

Rank: Enthusiast

Joined: 2/15/2008
Posts: 40
Location: London, England
Hey thanks for the reply, i will check it out then see what i can come up with.


Cheers.
- rory
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.