Javascript code to set a field to display only (NOT DISABLED)
PaulPMar 9 2011 — edited Mar 10 2011What is the javascript $X function to set a field to Display Only (NOT DISABLED) ?
If I use $x('P1_TBRN').disabled = true; then the value for the field in session state is set to null when the page is submitted for SAVE. I've tried it with ordinary Apex Display only item type and it works fine but I don't want to have to submit the page each time to render the item displayed as a text field or display only. I want changes in lovs to do that automatically hence, javascript.
thanks in advance
Paul P