472,805 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Activate/Deactivate parts of a form

Hello!

I need some advice with some forms.

We have to create a survey for our users in our company.

Now I created a html-document with one form.
I used radio-buttons to collect the answers from the users.

There is now one main-question on top of the survey.
If the users chooses "NO" as the answer, all following parts of the form
should be deactivated.
Only if "YES" was choosen, the rest of the form should be useable.

Is there a usefull way to solve this problem?

Thanks in advance!

Axel

--

<<Spreading The News Around The World>>
by M.L. Gore - Depeche Mode
Jul 20 '05 #1
1 6370
Axel Schwenke wrote:
Hello!

I need some advice with some forms.

We have to create a survey for our users in our company.

Now I created a html-document with one form.
I used radio-buttons to collect the answers from the users.

There is now one main-question on top of the survey.
If the users chooses "NO" as the answer, all following parts of the form
should be deactivated.
Only if "YES" was choosen, the rest of the form should be useable.

Is there a usefull way to solve this problem?


Option 1:
Instruct users to continue with a later question and provide a link, like
this:
If you answered "No", please <a href="#q10">continue with question 10</a>.

On the server side, ignore the answers which should not be filled out (in
case someone ignores your instructions and still answers the other
questions).
Option 2:
Use a scripting language to jump to the next applicable question (hint:
check the focus method in Javascript). If you KNOW that all of your users
have modern browsers with good CSS support and Javascript enabled, you could
also change the visibility of sections on the page.

Again, on the server side, ignore the answers which should not be filled out
(in case someone has Javascript turned off, or first answers the jump
question in one way, then changes his/her mind and answers it differently)
Option 3:
Split the survey into individual questions, each on a single page, so you
only show applicable questions.
--
Klaus Johannes Rusch
Kl********@atmedia.net
http://www.atmedia.net/KlausRusch/
Jul 20 '05 #2

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

Similar topics

1
by: Daniel Chou | last post by:
Hello, I have two questions about "not logged initially": 1. Before using "alter table tbname activate not logged initially", should the table be created with "not logged initially"? 2....
5
by: Jonas | last post by:
Can you activate and deactivate the Windows Toolbar function "QuickLaunch" programatically?
3
by: active | last post by:
I remember when I checked NewGroups for comments about the VB6 Activate event and found that many thought it was not a reliable way to keep track of which form has focus. There was enough bad press...
5
by: Adda | last post by:
In a Parent mdi form I have a datagrid. I select a record from the grid and then invoke a childmdi form. I add the childmdi to an arraylist to keep track of it. If a user has selected multiple...
2
by: Dave Booker | last post by:
I have a Windows form application that I generally run minimized. When a critical event occurs it instantiates another "Alert" form which I want to grab the user focus. In the Alert constructor...
2
by: dominic.martin | last post by:
Hi, I'm no javascript programmer but I found a really good piece of javascript at http://www.isdntek.com/tagbot/zipzoom.htm that magnifies areas of an image. It's just what I want but their...
7
subashini Thiyagarajan
by: subashini Thiyagarajan | last post by:
Hi , In ASP how to deactivate few fields while inserting a record to the database(access). i want to insert a record.e.g having 5 fields.it is not reqired to fill all the fields in a form as...
5
by: Andrew Morton | last post by:
Is it possible to make a form deactivate itself without minimizing it? I have written a small utility which copies selected files from CDs (hundreds of them). I put a CD in the tray and click a...
7
by: Andrus | last post by:
I have UserControls in MDI child forms containing TextBoxes and other controls. When user re-activates form, I need that Control which was last activated is activated again. Currently *first*...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.