Discussion Locked

ColdFusion

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a CFQUERY the results of the query populate a form used to update data I don't want all of the data available for update. But would like it displayed in the form. Is there a code to grey out this info or make it read only?

THANKS,
FREC

5 replies

by mark.thomson

I don't know if you can do this in Cold Fusion but the classic solution to your problem is to display the read-only data in labels rather than editboxes

by gbworld

Output some of the data fields into their form tags and the rest output as text. This will make sure that they are not available for update.

You will have to write your CFQUERY or CFUPDATE a bit differently to not try to insert something for these fields. Otherwise, you might NULL out the values for these items (if it does not error out).

Gregory A. Beamer
MVP; MCP:+I, SE, SD, DBA

******************************************
Think Outside the Box!
******************************************

This discussion is closed to new replies.