Home › Forums › Quform PHP › Filter options (Advanced) in regards to "allowWhiteSpace"
- This topic has 2 replies, 2 voices, and was last updated 11 years ago by hortondesigns.
- AuthorPosts
- January 15, 2014 at 4:43 pm #8271hortondesignsParticipant
I want to allow white spaces in form fields. Here is the error I am receiving:
There was a problemCatchable fatal error: Argument 1 passed to Quform_Element::addFilters() must be an array, string given, called in /home2/hikerex1/public_html/winstage.usinsurance-agency.com/quform/process-contact-us.php on line 206 and defined in /home2/hikerex1/public_html/winstage.usinsurance-agency.com/quform/lib/Quform/Element.php on line 231
222 $address2 = new Quform_Element(‘address2’, ‘Address’);
223 $address2->addFilter(‘trim’);
224 $address2->addFilter(array(‘allowWhiteSpace’ => true));
225 $form->addElement($address2);231 $city = new Quform_Element(‘city’, ‘City’);
232 $city->addFilter(‘trim’);
233 $city->addFilters(‘alpha’, array(‘allowWhiteSpace’ => true));
234 $form->addElement($city);I tried to follow the documentation. Need help!
January 16, 2014 at 10:20 am #8288AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 11 years ago by Ally. Reason: the address should probably use alphaNumeric to allow numbers
January 17, 2014 at 5:42 am #8328hortondesignsParticipantThanks Ally! My form is working properly without any errors. 🙂
- AuthorPosts
- You must be logged in to reply to this topic.