5.5.2 SP2b + patches / Solaris
------------------------
Trying to restrict the ability for someone to manually type into a text field with an associated callout button.
I've managed to get it so that the field starts out readonly when the DCT is initally loaded, and even got it to change to readwrite when the click on the callout button and select an entry in there, but I cannot seem to get it to change back to being readonly after the selection.
I'm thinking that my approach to this is wrong and that rather than trying to do the entire thing in FormAPI within the DCT, I think I want to somehow make use of FormAPI in the CGI callout surrounding the location where I actually go to set the value in the field.
If I'm sitting there with
if (calloutForm.elements[ i ].name == '$element_name'){...}How can I make a call to something like IWDatacapture.getItem() [or do I need to?] to explicitly make the field read-write, set the value, and then make the field read-only again ?
References to specific sections of documentation and/or code snippets welcome.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com