Forums

Have an undefined number entries (Show/Hide)

TMacDMB 16 Oct, 2009
Hello.

I would like to know if it is possible to have an undefined number of entries. For example, I want to have a form for entering purchase order data. I will have drop down menus for selecting asset type, text boxes for entering order #s, quantity, etc. The thing is, there could be one item or 15. How can I show the first item (and it's relative fields) and then have the ability to have a radio button (or something) that says "New Item" and the fields will be displayed again below.

It could be a show / hide thing but I don't know.

Thanks for your help.
GreyHead 16 Oct, 2009
Hi TMacDMB,

Yes it's possible, you can add fields 'on the fly' with JavaScript, or disclose hidden fields (but then the number is fixed in advance).

You need to use and track a serial number to know how to identify the 'next' field. And you probably want to collect the results in an array to make processing simpler on submission.

Bob
TMacDMB 16 Oct, 2009
Thanks Bob.

Do you have a sample of this code? I am a JS beginner.

Thx.
clovismmbr 18 Oct, 2009
I would like to see a small example too
Please help us
Clovis
berlin80210 03 Feb, 2010
Hi All,

I tried the sample script, but when implemented into Chronoforms it becomes unusable. Any ideas?
clovismmbr 16 Feb, 2010
I need a step by step tutorial, how this stuff work with ChronoForms
May post this on paid service?
GreyHead 16 Feb, 2010
Hi clovismmbr,

I'll try and write something as soon as I have time to a better than half-decent job of it.

Bob
clovismmbr 19 Feb, 2010
Hello GreyHead, I need just to put the mentioned example to work on CF.
I my scope will have ony text fields
if you need, I can even pay for this service, because it will save a lot of time.
clovismmbr 09 Dec, 2010

Hi clovismmbr,

I'll try and write something as soon as I have time to a better than half-decent job of it.

Bob



Hi GreyHead (me again) LOL
I need this code to build, a subscriptions on an Seminar event
In this case i will use two forms

One form, is for individual subscriptions (piece a cake)
But the other form is for group subscriptions where will have the Organization(company) as a main subscriptions and the people that belongs this main subscriptions.
Example:
First Mainform will have data from company
and the others will be the members of this subscriptions.

thats means, one subscription can handle unumered dependent members

WEBRY COMPANY DATA
|-> clovis
|->email of clovis
|->Name of clovis
|->Vcard of clovis

ChronoEngine
|-> GreyHead
|->email of GreyHead
|->Name of GreyHead
|->Vcard of GreyHead

If you have time please help me, you can put a price for this help.

Thank you Very much
GreyHead 27 Feb, 2011
Hi,

I've published a tutorial on creating Conditional ChronoForms using Usable Forms and Validation scripts from QuirksMode.org.

Please see this post for more information.

Bob
This topic is locked and no more replies can be posted.