CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Show record fields based on user input

Print topic Send  topic

Author Message
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..
View profile  Send private message
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
View profile  Send private message
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...
View profile  Send private message
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.


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.