473,324 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Hidding/Showing Form Field

A P
Hi!

My first question was, can I hide a form field and make it visible upon
selecting a particular value on a dropdown select field? Hoping for your
immediate response.
Me
Jul 22 '05 #1
5 1443
Gazing into my crystal ball I observed "A P" <ap@textguru.ph> writing in
news:#D**************@TK2MSFTNGP12.phx.gbl:
Hi!

My first question was, can I hide a form field and make it visible upon
selecting a particular value on a dropdown select field? Hoping for
your immediate response.


Are you talking about after the form is posted, or before? If it's
before then you need to look into some client side script, probably a
little javascript mixed with some CSS.

If you're talking about a form that posts to itself, then you could do:
<% if request.form("selectboxvalue") = "whatevervalue" then %>
<input type="text" name="somename" id="someid" value="somevalue" />
<% else %>
<input type="hidden" name="somename" id="someid" value="somevalue" />
<% end if %>

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #2
A P
How about dropdownbox within the table? can I hide a row using this lines?

Me

"Adrienne" <ar********@sbcglobal.net> wrote in message
news:Xn***************************@207.115.63.158. ..
Gazing into my crystal ball I observed "A P" <ap@textguru.ph> writing in
news:#D**************@TK2MSFTNGP12.phx.gbl:
Hi!

My first question was, can I hide a form field and make it visible upon
selecting a particular value on a dropdown select field? Hoping for
your immediate response.


Are you talking about after the form is posted, or before? If it's
before then you need to look into some client side script, probably a
little javascript mixed with some CSS.

If you're talking about a form that posts to itself, then you could do:
<% if request.form("selectboxvalue") = "whatevervalue" then %>
<input type="text" name="somename" id="someid" value="somevalue" />
<% else %>
<input type="hidden" name="somename" id="someid" value="somevalue" />
<% end if %>

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 22 '05 #3
A P wrote on 24 jan 2005 in microsoft.public.inetserver.asp.general:
My first question was, can I hide a form field and make it visible upon
selecting a particular value on a dropdown select field? Hoping for your
immediate response.


since this has nothing to do with serverside ASP,
please restrict your Q to relevant NGs

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #4
A P
What I mean was this, can I hide a textbox field including the row where the
field is located?
"Steven Burn" <so*******@in-time.invalid> wrote in message
news:u9**************@TK2MSFTNGP09.phx.gbl...
Yes... just replace the line containing <input ......> with your <option ....>... tag (really should consider using JS for this though as it's
creating more work than is necessary).
--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"A P" <ap@textguru.ph> wrote in message news:#b**************@tk2msftngp13.phx.gbl... | How about dropdownbox within the table? can I hide a row using this lines? |
| Me
|
| "Adrienne" <ar********@sbcglobal.net> wrote in message
| news:Xn***************************@207.115.63.158. ..
| > Gazing into my crystal ball I observed "A P" <ap@textguru.ph> writing in | > news:#D**************@TK2MSFTNGP12.phx.gbl:
| >
| > > Hi!
| > >
| > > My first question was, can I hide a form field and make it visible upon | > > selecting a particular value on a dropdown select field? Hoping for
| > > your immediate response.
| > >
| > >
| >
| > Are you talking about after the form is posted, or before? If it's
| > before then you need to look into some client side script, probably a
| > little javascript mixed with some CSS.
| >
| > If you're talking about a form that posts to itself, then you could do: | > <% if request.form("selectboxvalue") = "whatevervalue" then %>
| > <input type="text" name="somename" id="someid" value="somevalue" />
| > <% else %>
| > <input type="hidden" name="somename" id="someid" value="somevalue" />
| > <% end if %>
| >
| > --
| > Adrienne Boswell
| > http://www.cavalcade-of-coding.info
| > Please respond to the group so others can share
|
|

Jul 22 '05 #5
"A P" wrote in message news:O2**************@TK2MSFTNGP12.phx.gbl...
: What I mean was this, can I hide a textbox field including the row where
the
: field is located?

Please post your responses inline or at the bottom.

Does this help?
http://kiddanger.com/lab/showhide2.html

The white pants are on sale.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: didier Belot | last post by:
Hi! If the subject isn't clear: Modern browsers provide an optional way of remembering user input in textbox: user begin to type, and a list drop down just under the textbox showing matching...
2
by: c.anandkumar | last post by:
Hi All - I have some problems getting a small piece of javascript working correctly for Firefox. Here is what I am trying to do - 1. I have a form (like a search form) 2. I have many groups...
1
by: mauricio.silva | last post by:
Does anyone know of a way to hide the database window aside from the startup menu option that would prevent the window from showing ever when shift is held down while opening.
1
by: Sam Carleton | last post by:
Ok, have posted here before, but as a refresher, I have 8 years experience as a C/C++ Windows developer. Currently I am working on my first real web site using ASP.Net. I must admit that so far...
2
by: Timbo | last post by:
Hi there, I’m not used to working in VB and I think this situation calls for excactly that. I use Access 97 SR-2. My first table is a table containing all the Tickets I got. The field ”Ticket”...
1
by: rgdwar1 | last post by:
Hello, I have two issues I need help with: I have a Data Entry form called Frm_Entry (with a corresponding table) with the following fields: Date Assigned (Date) Date Processed (Date) Date...
2
by: Ulv | last post by:
I don't get it !!! Stupid, stupid, stupid I have 2 tables. TblPostings: Id, autonumber, key BlockNo, text NoofItems TblItem:
1
by: srinivasarao yarru | last post by:
hi friends, i am getting one problem in my software can you plz try to currect that thing. In my project total 5 tables are there.from table 3 onwards i gave composite primarey key. ...
11
by: radink | last post by:
Hey All, I have a report that I would like to show a word on based on if a field is checked in a form. For example. The form has a check box called Fee. If that is checked, I want the word Paid...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.