Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Can an option button be invisable and set to selected with a value?

Posted on 2004-09-24
3
180 Views
Last Modified: 2013-12-24
I have a set of option buttions in a group of 4
They are each set as not selected and have values ranging from 1 to 4.  If the web viewer does not select any of the four in the group, I'd like for a value of 0 to be selected.

I know that if I add a 5th option button, select it and assign it a value of 0, what I need will result.  One hitch:  I don't want the 5th option button visable or taking up space on the form.  

Help!
Neil
0
Comment
Question by:nlesser
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
hhammash earned 250 total points
ID: 12147209
Hi,

The easiest way is to keep the default value in the table for this field as 0.  If the user selects an option the value will change accordingly.

Example:
-----------

You have a field in the table called Level
The OptionGroup on the form is called Level and has 4 values from 1 to 4.
In the table keep the value of Level field as 0
If the form submits null value for Level field,  the 0 will not change,  otherwise,  the 0 will be replaced by the value selected on the form.

hhammash
0
 

Author Comment

by:nlesser
ID: 12149058
Thanks for the great advice.

Neil
0
 
LVL 14

Expert Comment

by:hhammash
ID: 12149163
You are welcome nlesser
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Web Designer 5 178
Error pops up while using DWCSS 2015 11 165
replace tables with divs, using templates(bootstrap) 9 333
Application.cfc - what is the order of events? 4 45
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question