M
|
mrpeeble 10/24/2007 |
Add the following code to the end of Add/Edit page in Visual Editor in HTML mode. This code snippet makes state dropdown disabled if other than US country is selected. <script>
|
M
|
Max68 10/26/2007 |
I don't kwon if this can help you, but i've done this |
M
|
Max68 10/26/2007 |
I am sorry, this part is to delete. |
M
|
mrpeeble 10/29/2007 |
I am sorry, this part is to delete. <script language="JavaScript" type="text/javascript" src="numberFormat154.js"></script> (it is relative to another function in the page) Max
|
M
|
Max68 10/31/2007 |
Max, thanks for your assistnace. You are correct, the code needed the literal tags to function. Now it works pretty good when the onchange event fires, but I need the field to be locked when the page loads, not just when changing to one of the values where a lock is specified. If anyone knows how to do this, please let us know.
|
V
|
vcane 11/27/2007 |
I put this in Editpage and dont work to my, please a need you help is very usufull to my enable and disable control based in other control values in add/edit pages. |
M
|
Max68 12/7/2007 |
in my case works correctly, naturally, i think you have done, you must change the names of variables to match to your case. |
I
|
indigo 4/15/2008 |
What do I do if I want to disable multiple fields? Apparently its not working for the same. {literal} <script language="JavaScript" type="text/javascript"> document.forms.editform.value_Status.onchange=function() { if(this.options[this.selectedIndex].value=='Completed') document.forms.editform.value_ProjectName.disabled=true; document.forms.editform.value_StartDate.disabled=true; document.forms.editform.value_StartTime.disabled=true; else { document.forms.editform.value_ProjectName.disabled=false; document.forms.editform.value_StartDate.disabled=false; document.forms.editform.value_StartTime.disabled=false; } } </script> {/literal} |
M
|
mathias@mylo.be 2/23/2010 |
Hi, |
M
|
mmponline 3/17/2010 |
Also need to know what way is needed to hide / show a field based on the value chosen in first field. - For V5.2 |
S
|
SANDY 8/5/2010 |
This code snippet makes state dropdown disabled if other than US country is selected PHPRunner5.0/5.1 Add the following code to the end of Add/Edit page in Visual Editor in HTML mode. <script>
<script>
|
M
|
mmponline 8/5/2010 |
THIS CODE IS NOT WORKING
|
I
|
inko_nick 8/15/2010 |
For v5.2 |