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

Increasing the Number of Characters Permitted by a HiddenField

(1027 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));
with:
$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:
$ffForm->formFields["friends_name"]->setHidden(true);
Info
Support | Earn Money
Copyright © 2005-2019 Brain Book Software LLC.
Built with FORMfields, the premiere web framework.