?
Solved

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

Posted on 2004-09-24
3
Medium Priority
?
184 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 1000 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
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…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

771 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