Hi!
I am using ASP Runner 6.1.
I would like to ask if it's possible to disable a row so all contents in that row (textbox, checkbox, etc.) will become readonly.
I know how to hide a row based on condition (in Add Page before display) and I am wondering if it's possible to make it disabled instead of hiding it. The code that I have used to hide a row is:
==================================================================================
dim rsExists4
set rsExists4 = dal.Table("Session Schedule 4").Query("NewPresentation='Yes'","")
if not rsExists4.eof then
xt.assign "SessionOption4_fieldblock", true
else
xt.assign "SessionOption4_fieldblock", false
end if
rsExists4.Close : set rsExists4 = Nothing
===================================================================================
where SessionOption4_fieldblock is the name of the row.
I've tried to change "true/false" to "enabled/disabled" and "1/0" but didn't work.
I know also how to make the field readonly in HTML editor using this code:
==============================================================================
document.getElementById("display_value_RegistrationStartDate").readOnly=true;
==============================================================================
where RegistrationStartDate is a lookup field from another table and set as "Edit box with AJAX popup".
I was wondering if it's possible to replace the field with a row and make everything in that row readonly.
Thanks,
Jay