timtodd
Posts: 4
|
| Posted: 05/16/2006, 12:28 PM |
|
Hey all... I've been using CCS for a while but i'm running into something which i'm sure is very easy but I cannot find the answer for the life of me.
I have a RSVP form in which the user needs to fill in thier registration details:
First Name, Last Name, Adress, email, meal type, etc..
The tricky part is, they are allowed to bring up to four guests, for which I have to collect first name, last name, and meal type.
I want to have the first, last, and meal text boxes show for guest 1, and if they fill in information for guest one, have the form make the fields for guest 2 show, and so on...
Am I making sense?
I am using ASP.. Any help would be Greatly appreciated..
|
 |
 |
peterr
Posts: 5971
|
| Posted: 05/16/2006, 2:34 PM |
|
Hi,
This looks similar to "Editable Grid with Auto New Rows" example in CCS Example Pack. It shows how to automatically display additional fields after someone fills in information for one record, and then another, and so on. http://examples.codecharge.com/ExamplePack/EditableGrid...ridAutoRows.php
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
timtodd
Posts: 4
|
| Posted: 05/17/2006, 10:55 AM |
|
This is a little different because they aren't going to be entering data into a new row, instead, fields (Guest1_first_name, guest1_last_name) etc...
|
 |
 |
Benjamin Krajmalnik
|
| Posted: 05/17/2006, 12:19 PM |
|
Tim,
This is where you need to do some client side programming. You would use
DOM to activate the contols.
The way I would do it is have a function triggered by the onChange event of
the input fields.
It would then check for the existance of a non blank value in a specific
field, and if so change the related fields context.
I would probably use readonly by default, and change it via DOM.
|
|
|
 |
|