Change field to disabled is driving me crazy |
6/30/2008 03:49:25 | |
| PHPRunner General questions | ||
|
M
marpunta author
Hi i am using PHPR 4.2 and i want to disable some fields in the ADD or EDIT forms when a value from a field is selected {literal}<script> document.forms.editform.value_alpha.onchange=function() { if(document.forms.editform.value_alpha.value=='1') //this is the actual value { document.forms.editform.value_beta.disabled=true; document.forms.editform.value_gama.disabled=true; document.forms.editform.value_delta.disabled=true; } else { document.forms.editform.value_beta.disabled=false; document.forms.editform.value_gama.disabled=false; document.forms.editform.value_delta.disabled=false; } } </script>{/literal}
|
||
|
J
|
Jane 6/30/2008 |
|
Hi, echo "<input type=\"Radio\" name=\"radio_".$cfieldname."\" onclick=\"java script: $('#".$cfieldid."')[0].value='".htmlspecialchars($opt)."'; return true;\" ".$checked.">".htmlspecialchars($opt)." |
|
|
M
|
marpunta author 6/30/2008 |
|
Hi Jane |
|
|
J
|
Jane 7/1/2008 |
|
Hi, |
|
|
M
|
marpunta author 7/1/2008 |
|
Thank you |
|
|
J
|
Jane 7/1/2008 |
|
Hi, $values["Field3"] = $values["Field1"]; |
|
|
M
|
marpunta author 7/1/2008 |
|
WORKS FINE |
|