cancel
Showing results for 
Search instead for 
Did you mean: 

Read-only property for a field in a form

rajee434
Champ in-the-making
Champ in-the-making
Hi ,

Can you tel me as how to set a field as read-only in a form.
As
<input type="text" name="companyName" value=""/>
    <input type="hidden" name="companyName_required" value="true" />

How to set for read-only property?
I tried
<input type="hidden" name="companyName_readonly" value="true" />

But it does not work.

Any idea.

Thanks,
rajee
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Not really sure what your usecase is… If you're rendering your form in HTML, why not just render a disabled text-box (or none at all, just plain text)?