Error message for select inputs in Asset Builder

Hi everyone,


I've got a simple asset builder, with some metadata fields, including 2 which are select fields that appear as a list of radio buttons. Lovely.

I've just set up a bunch of fields on the 'Required Attributes' screen, to set these metadata fields as required and to put in a friendly error message. Still lovely. All my friendly error messages appear fine, but for the two select fields I also get this one:


    "" is not a valid value for attribute "selection" [SYS0073] 


Not very lovely, or friendly.

The only way I can get that to not appear, is to set the metadata field to 'Allow Empty' = Yes, but then I get a radio box for the empty option, which I don't want.

So, how to set it so:
My select fields have just the options I want, as a list of radio buttons with none of them filled in by default
A validation check on the form submit to make sure that the user has selected one of the radio buttons
Only my friendly error message to appear, not the one above

?

All ideas welcome!
Thanks,
Charlie.

[quote]
Hi everyone,



I've got a simple asset builder, with some metadata fields, including 2 which are select fields that appear as a list of radio buttons. Lovely.

I've just set up a bunch of fields on the 'Required Attributes' screen, to set these metadata fields as required and to put in a friendly error message. Still lovely. All my friendly error messages appear fine, but for the two select fields I also get this one:


    "" is not a valid value for attribute "selection" [SYS0073] 


Not very lovely, or friendly.

The only way I can get that to not appear, is to set the metadata field to 'Allow Empty' = Yes, but then I get a radio box for the empty option, which I don't want.

So, how to set it so:
My select fields have just the options I want, as a list of radio buttons with none of them filled in by default
A validation check on the form submit to make sure that the user has selected one of the radio buttons
Only my friendly error message to appear, not the one above

?

All ideas welcome!
Thanks,
Charlie.
[/quote]

Have you tried setting "Hide Errors on the Frontend" to "yes" ?
This setting can be found on console [SYSTEM_ROOT]/data/private/conf/main.inc or in Admin interface on screen 'System Configuration' under section 'Error/Debug Settings'

Ash

[quote]
Have you tried setting "Hide Errors on the Frontend" to "yes" ?

This setting can be found on console [SYSTEM_ROOT]/data/private/conf/main.inc or in Admin interface on screen 'System Configuration' under section 'Error/Debug Settings'



Ash

[/quote]



Hi Ash,



Yup, that's already set to 'Yes'. Any other ideas?!

Thanks,

Charlie.

[quote]
Hi Ash,



Yup, that's already set to 'Yes'. Any other ideas?!

Thanks,

Charlie.

[/quote]



Hi,

So if that didnt't work, then the only thing I could think of is putting in your own javascript to do the client side validation before the server side validation done but Matrix.



Ash