5 replies [Last post]
graper@drupal.org's picture
Offline
Joined: 08/22/2008
Juice: 16
Was this information Helpful?

On product that I have 1 attribute with 3 options, I have told it to default to the first option but it seems that when viewing the product none of the options have been defaulted to on. I have the attribute setup as radio buttons and I have the Attribute Ajax Calculation module installed as well. Is there another setting I need to look into or is this some bug that has yet to be looked into?

Granville

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: attributes default options doesn't seem to work properly

Don't make the attribute "required". In this context, the requirement is the conscious decision of the customer. I guess I should make that setting say "no default value" or something.

graper's picture
Offline
Joined: 06/27/2008
Juice: 60
Re: Re: attributes default options doesn't seem to work properly

thanks for that tip, now I need to mark all my products to as not "Required". In many other modules when building a form like elements, required usually makes the item selected for a dropdown, marked for radios. Checkboxs are hard to force unless there are multiple checkboxes and at least one of them need to be checked.

If you do make a change to it, it would be nice to have the same consistency as other form building modules and have this act the same way, if it marked as required and it's radios, have the first item marked by default (or whatever the setting is under options) as it is hard to un-select a radio button. Dropdown should have the first or whatever setting is under options selected.

The only real reason I mentioned this is because CCK works in the manner I described and I had expected the same behavior.

Thanks again for the tip. I guess when you make a change I'll have to go back and check all the items as required again Smiling

Granville

Riki's picture
Offline
Joined: 01/10/2009
Juice: 196
Re: Re: attributes default options doesn't seem to work properly

Same here, that doesn't make any sense and I spent some time trying to figure out why it wouldn't work. At least it was an easy fix!

- Riki Babington
www.eat3d.com
Feed Your Brain!

slarek's picture
Offline
Joined: 10/30/2008
Juice: 2
Re: attributes default options doesn't seem to work properly

Yes please change that name, I've just spent about an hour trying to figure out why the radio was not selected.
This is time that I did not have to waste on debugging wrongly named fields.

himagarwal's picture
Offline
Joined: 06/24/2008
Juice: 295
I had the same problem. It

I had the same problem.

It would be nice in case of "required" the default option is pre-selected.