CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Enter data in 1 field so another field is populated

Print topic Send  topic

Author Message
cobom


Posts: 55
Posted: 01/26/2006, 5:41 AM

This has been answered before I am sure, but I am unable to find anything.

If I have to field that are paired, ie Project Number and Project Data - can the user select Project Name from a dropdown and have Project Number populated?

The number is the important one but users generally like to pick from a name.

Thanks
_________________
cmckinney@searay.com

Will program for a Sea Ray 680 SS ;}
View profile  Send private message
eiden


Posts: 34
Posted: 02/03/2006, 4:27 PM

Do you mean something like this?

<html>  
<head>  
<title></title>  
  
<script type="text/javascript">  
function pField(val){  
     Form1.toField.value = val;  
}  
</script>  
  
</head>  
<body>  
  
<select onchange="pField(this.value)">  
     <option value="1">John</option>  
     <option value="2">Eric</option>  
</select>  
  
  
<form name="Form1" method="post" action="">  
    <input type="text" name="toField" value="">  
</form>  
  
</body>  
</html>  
View profile  Send private message
Walter Kempees
Posted: 02/03/2006, 4:31 PM

cobom:
search the forum for "dependant listbox", many explanations

"eiden" <eiden@forum.codecharge> schreef in bericht
news:643e3f4d8724aa@news.codecharge.com...
> Do you mean something like this?
>
>
<html>  
> <head>  
> <title></title>  
>  
> <script type="text/javascript">  
> function pField(val){  
>     Form1.toField.value = val;  
> }  
> </script>  
>  
> </head>  
> <body>  
>  
> <select onchange="pField(this.value)">  
>     <option value="1">John</option>  
>     <option value="2">Eric</option>  
> </select>  
>  
>  
> <form name="Form1" method="post" action="">  
>    <input type="text" name="toField" value="">  
> </form>  
>  
> </body>  
> </html>  
> 
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


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.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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