J
|
Jane 1/28/2008 |
Hi, {literal}<script> document.forms.editform.value_FieldName.onchange=function() { if(this.options[this.selectedIndex].value=='CA') { document.forms.editform.value_FieldName2.value='another value'; } else { document.forms.editform.value_state.value=''; } } </script>{/literal}
|
C
|
Christopher author 2/14/2008 |
Hi, use JavaScript to change field value dynamically on the add/edit page. Here is a sample: You can add JavaScript code on the Visual Editor -> HTML mode.
Link $smarty->assign("value_CombineID",$_REQUEST["CID"]);
|
J
|
Jane 2/15/2008 |
Hi, $var = $smarty->get_template_vars("value_CombineID"); if ($var==105 || $var==106) $smarty->assign("show_snippet",true); else $smarty->assign("show_snippet",false); |