[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cgiapp] Read Only Field


Thanks but this will not help me. I need to have this as part of the form
and visible but not editable. I figured it out though. If you set the
attribute -readonly => 1, it does the trick.

Thanks

-----Original Message-----
From: Michael Peters [mailto:suppressed 
Sent: Wednesday, November 24, 2004 2:36 PM
To: Sabherwal, Balvinder (MBS)
Cc: suppressed
Subject: Re: [cgiapp] Read Only Field

Sabherwal, Balvinder (MBS) wrote:
> Guru's
> 
> When I'm creating a text field on the form using C::A, how can I make them
> read only if need be?
> 
> Here is the code that I use to define the text field on my form
> 
> {
> 	  local($") = '';
> 	$output .= $q->blockquote("Enter your email id : ",
> $q->textfield(-name=> 'eml', -size=>100, 
> 	
> -value=> $usr_ml,
> 	
> -maxlength=>100));
> 	}
> 

That's not really a C::A question. Why don't you just print out the 
value instead of using a input box? I don't think you can make input 
fields non-modifiable unless you set them as 'disabled'.

-- 
Michael Peters
Developer
Plus Three, LP

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.