Related producted options

I have a few product options which include the following two:[list]

[]non standard color → checkbox

[
]desired color → textfield

[/list]

The texfield “desired color” is mandatory when the checkbox “non standard color” is enabled. Can this be achieved with standard CS-Cart 3.0.6 functionality? If yes, then how?



Or do we need to edit tpl and php files to get these options related? If yes, then can you point me into the right direction?



Thanks in advance,

Eelco



PS: would even be better if texfield “desired color” because visible and is mandatory when the checkbox “non standard color” is enabled

You can use JQuery Form Event Handlers

Thx, will have a look into this

Updated the code.



[url=“Edit fiddle - JSFiddle - Code Playground”]http://jsfiddle.net/requincreative/KVRnF/23/[/url]

Can you set up your unchecked checkbox and textarea as forbidden combinations?



edit: wait… I don't think you can add a textarea to a forbidden combination - it's not really an “option”