FORMfields, the premiere web framework
Support Home | Knowledge Base | Documentation | Forums | Contact Us
FORMfields & FORMgen :: Field Customizations

Increasing the Number of Characters Permitted by a HiddenField

(1113 views. Last Updated: 2009-04-24 10:15 AM)

Simply edit your generated form in a text editor and replace, for example:
$ffForm->addField(new HiddenField("my_hidden_field", "Some value", 255));
$ffForm->addField(new HiddenField("my_hidden_field", "Some value", null)); // This will set an unlimited max length

Alternatively, you can always make any field a hidden field just by using the setHidden() method. For example, if you have the field:
$ffForm->addField(new PersonNameField("friends_name", "Friend's Name", FORM_FIELD_REQUIRED));
just below this line add:
Support | Earn Money
Copyright © 2005-2020 Brain Book Software LLC.
Built with FORMfields, the premiere web framework.