Topic: How to change Textbox properties into Read only?

I'm using FA. Purchasing data entry, how to include/add "Read only" into reference textbox?

Thanks
(Towerfour)

2 (edited by apmuthu 02/09/2015 09:30:47 am)

Re: How to change Textbox properties into Read only?

The file purchasing/includes/ui/po_ui.inc has a function display_po_header() that does the job. Reference is generally editable on new data entry only and not available to be editable afterwards (line 117).  Lines 177 to 182:

    if ($editable)
    {
        ref_row(_("Reference:"), 'ref');
    }
    else
    {
        hidden('ref', $order->reference);
        label_row(_("Reference:"), $order->reference);
    }

provide the form elements.