473,796 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1461
Gazing into my crystal ball I observed "A P" <ap@textguru.ph > writing in
news:#D******** ******@TK2MSFTN GP12.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("s electboxvalue") = "whateverva lue" then %>
<input type="text" name="somename" id="someid" value="somevalu e" />
<% else %>
<input type="hidden" name="somename" id="someid" value="somevalu e" />
<% 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********@sbc global.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******** ******@TK2MSFTN GP12.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("s electboxvalue") = "whateverva lue" then %>
<input type="text" name="somename" id="someid" value="somevalu e" />
<% else %>
<input type="hidden" name="somename" id="someid" value="somevalu e" />
<% 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.publi c.inetserver.as p.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******** ******@TK2MSFTN GP09.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******** ******@tk2msftn gp13.phx.gbl... | How about dropdownbox within the table? can I hide a row using this lines? |
| Me
|
| "Adrienne" <ar********@sbc global.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******** ******@TK2MSFTN GP12.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("s electboxvalue") = "whateverva lue" then %>
| > <input type="text" name="somename" id="someid" value="somevalu e" />
| > <% else %>
| > <input type="hidden" name="somename" id="someid" value="somevalu e" />
| > <% 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******** ******@TK2MSFTN GP12.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
1996
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 strings already typed. I just want to provide my own droplist.
2
2226
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 of searchable fields in the fields 3. Each group can be expanded/collapsed by clicking on a link "(Fewer|More) Options" which sits right next to the group title.
1
1501
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
1368
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 it has been a lot of fun, but the way one must thing about things is very different from what I know and love:) I have worked though the "Walkthrough: Validating User Input in a Web Forms Page" and have my form, now I need to do something with...
2
3340
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” is simply a ticket-number. I’ve made a form in which I am to choose an existing Ticket and write a description for it pluss other things. The description to these Tickets are stored in another table called ”LogBook”. I then made a query on all of...
1
1475
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 Submitted (Date) MS-Company (Text) Client (Text) Reimbursement Amount
2
1653
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
1440
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. table3's corresponding form is Form3 in this form first i entered 1st record and then click add record button then i am getting new form but previous entered record fields disablity also it is showing in the new form.but entry time there is no...
11
1858
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 to show up in the report. If it's not checked, then I want it to not show. Thanks for any help!
0
9679
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9527
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10172
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.