stickgrinder / fluentform Goto Github PK
View Code? Open in Web Editor NEWA powerful, full featured, fluent form factory for CodeIgniter2 framework
A powerful, full featured, fluent form factory for CodeIgniter2 framework
->add_dropdown_field('field', 'Label', array('1' => 'My option', '2' => 'Another option'), 'required', '1');
Gives me a ton of SimpleXML errors if I set that last param (value).
Any ideas?
SSIA. Creating a form is too verbose. Here is some hint:
Up to 2.0 version, there is no "logical" clue on different form sections other than fieldsets (imagine a multistep form with several fieldsets in each step). Form Sections would be a way to "categorize" fields to fall into one or more sections. Think them as a field-tagging system that creates orthogonal sets of fields that can be rendered with a single command.
The solution I can foresee is to create a register of tags, with associated field names, so that I could reverse-search tagged fields.
This can be approached in one or more of the following:
Any clue?
This must be a loader priority problem. I already stumbled in this with other sparks and I have to find a way to get rid of this.
As pointed out in this nice article http://nedbatchelder.com/text/stopbots.html there are three wonderful ways to get rid of spambots without punishing the user:
Nice additions and they should be all optional from config file.
Version 2.x allow to create field groups as HTML fieldset elements. That's good enough since HTML fieldset is specifically designed for this task, but there is no way to "nest" fieldsets.
Solve this adding proper methods and handlers.
As of 2.0 there is no way to "import" a form into another one. Say I have an "Address" form and a "complete your order" one. While completing an order the user should specify both billing and shipping addresses. I could then just import/embed "Address" form twice, reusing code.
Some note on this:
FluentForm shall not be fluent for developer only: we could make it a first-class user experience form factory by introducing three antispam measures:
These three techniques can render a form nearly unbreakable while not punishing the user as a CAPTCHA does.
Automatic label generation now works for both camelCase
and under_scored
field names. It would be nice to set rendering style via a configuration option (ucifrst, capitalize, lower, upper and such).
If I have a checkbox on the page and I check it and then hit submit on the form, if the form returns with validation errors, the checkbox is no longer checked.
Also if I have a form where I set the checkbox to checked, it will not check the checkbox when it is rendered on the page. The code I am using is
$form->add_checkbox ('permissions['.$permission['id'].']', $permission['label'], $permission['id'], 'trim', TRUE);
Am I doing something wrong with either of these issues?
I am using the latest version of FluentForms. I have a MY_Form_validation which extended Form_validation. FluentForm is avoiding the custom validation methods in MY_Form_validation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.