This topic is locked

Disable dropdown control

11/18/2009 8:39:31 PM
PHPRunner General questions
S
Stucco author

I have a dropdown with a default value dependent on a setting in the user table. I would like for this dropdown to be uneditable. The display values are different than the stored values, so I can not just make it a read only field with a default unless I do some value replacing on the fly. Also there are other dropdowns on the page dependent on this one. I think disabling would be the easiest option, but I am all ears.

J
Jane 11/19/2009

Hi,
just set up this driodiwn as disabled using custom JavaScript code:

<script>

document.forms.editform.value_FieldName.disabled=true;

</script>



You can add JavaScript code on the Visual Editor tab in HTML mode.