This topic is locked

Read Only Field in Edit Mode

8/22/2009 6:03:56 AM
PHPRunner General questions
M
mauro author

I need read-only fiedd in edit-mode, but i use lookup wizard, i read this topic

http://www.asprunner.com/forums/index.php?/topic/12235-readonly-dependent-lookup-field/pagehlread%20onlyfromsearch1

but down't work for me

J
Jane 8/24/2009

Hi,
please give me more detailed description of what doesn't work.

J
jdu001 9/7/2009



Hi,
please give me more detailed description of what doesn't work.


Hello Mauro,

  1. The field has to be a "Dropdown box" and not a "Edit box with AJAX popup".
  2. You have to place the JavaScript in the <HEAD> tag.
  3. Alter the <BODY> tag into <BODY onload=init()>
    Example:

    <HEAD>

    ...

    ...
    <script type="text/javascript">

    function init(){

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

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

    }

    </SCRIPT>

    </HEAD>
    <BODY onload=init()>

    ...

    ...

    </BODY>
    Success,
    Jo