Re: Show field 'date' when field 'checkbox' is true

Originally Posted by
fbrites Thanks Dragonfly,
I try to do this.
So, you can give me an for example for my case?
thank you very much
For the javascript function, you can try the one suggested by Andopes in the other thread you mentioned.
For editviewdefs.php you can try something like this:
PHP Code:
...
'includes' =>
array (
0 =>
array (
'file' => 'custom/include/javascript/myJavascript.js', //change path and filename with yours
),
),
),
'panels' =>
array (
...
array (
'name' => 'mycheckbox_c', // or whatever it's called
'label' => 'LBL_MYCHECKBOX', // or whatever it is
'displayParams' => array (
'javascript' => 'onchange="myfunction();"' //change with your function's name
),
),
...
What do you think the cookie monster eats ?
Bookmarks