| View previous topic :: View next topic |
| Author |
Message |
sgoulder Guest
|
Posted: Mon Jan 09, 2006 3:41 pm Post subject: Lock field |
|
|
| I need to be able to populate my data base with the company name, however, I do not want the person updating thier profile to be able to change it. How do I lock this field? |
|
| Back to top |
|
 |
formfields
Joined: 01 Aug 2005 Posts: 465
|
Posted: Mon Jan 09, 2006 4:13 pm Post subject: |
|
|
The easiest way is to create a HiddenField by adding something like following to the end of your addField list:
| Code: |
$formBean->addField(new HiddenField("company_name", "Some Company"));
|
Note: You must have the company_name attribute in your database table. |
|
| Back to top |
|
 |
|