Solved

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

Posted on 2004-09-24
3
182 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
[X]
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
  • 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordpress plugin to view newspaper 3 61
Why is this simple, masked Flash animation flickering? 20 221
Problem to get function 52 121
Problem to echo 6 116
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.
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…

734 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