troubleshooting Question

Auto select Radio group from function

Avatar of daimo1
daimo1 asked on
JavaScriptScripting Languages
6 Comments1 Solution734 ViewsLast Modified:
Hi
Use a selection of buttons to autofil a form with different values depending on the button pressed.
Works no problem with text and checkbox fields but can't get it to work on a radio group.

Here's one of the functions which works fine apart from the MenuImage field which is a radio group.

function CheckDefault()
{
form1.MenuSize_Width.value = 241;      //Text Field
form1.MenuColor_Normal.value = '#efefef'     //Text Field
form1.MenuImage.checked = 'CMSMenu/images/img1.gif'       // Radio Group. This is the problem one!
form1.ShowAll.checked = true     //Checkbox
}

Any ideas?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros