Success

User tests: Successful: Unsuccessful:

avatar Achal-Aggarwal
Achal-Aggarwal
28 Aug 2013

... in form fields and unit tests.

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31347

Instructions
Just merge that code branch and use HTML5 attribute.
For attribute
1. placeholder : use hint=”Placeholder text” to set placeholder
2. required : use required=”true” or required=”required” or required=”1” to make field required
3. autocomplete : use autocomplete=”false” or autocomplete=”off” or autocomplete=”0” to disable autocomplete.
4. autofocus : use autofocus=”true” or autofocus=”on” or autofocus=”1” to set focus automatically to the field.
5. spellcheck : use spellcheck =”false” or spellcheck =”off” or spellcheck =”0” to disable spellcheck.
6. multiple : use multiple=”true” or multiple=”required” so that field can accept multiple values of its type.
There is little bit refactoring with respect to boolean attributes (disabled, readonly), so everything should work as it does previously.

For the non-supported browsers, fallback js is automatically loaded to support it
Usage of some common attributes are on http://docs.joomla.org/Text_form_field_type/3.2

Install this component and test new field attributes.
https://docs.google.com/file/d/0B3rA3UKTXpVsV2ttNUE5MGNqWkU/edit?usp=sharing

avatar Achal-Aggarwal Achal-Aggarwal - open - 28 Aug 2013
avatar Achal-Aggarwal
Achal-Aggarwal - comment - 28 Aug 2013

Only new attributes PR #1763

avatar nicksavov
nicksavov - comment - 12 Sep 2013

Hi Achal,

It's out of sync. Please update it with the latest master. Thanks!

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 12 Sep 2013

Hi Nick,

Now PR is in sync with current master

avatar mbabker
mbabker - comment - 8 Oct 2013

Could you sync this up please?

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 8 Oct 2013

in a min.

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 8 Oct 2013

@mbabker done. i have rebased this branch on current master

avatar mbabker mbabker - close - 9 Oct 2013
avatar elador
elador - comment - 20 Oct 2013

There's a bug here: http://googlesummerofcode2.cloudaccess.net/index.php/demo
When you click on the text of Checkboxes Field "Chorizo", not the Chorizo-checkbox gets selected, but the Checkbox further up. The other checkboxes work correctly.
Note that I click on the text to get the tick, not in the actual box.
I'm on Chrome 29.0.1547.66

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 20 Oct 2013

@elador Actually I have git installed on the server where that site is hosted and the site was not on master. I updated it to master but the problem is still there, Checkout http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30036 this is a known bug with some discussion and no solution still, if you can propose a solution please create a PR of it and post it on the tracker. Even suggestions are also welcome.

avatar piotr-cz
piotr-cz - comment - 21 Oct 2013

Would you be interested in submitting similar the patches for Joomla Framework \ Form package?

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 30 Oct 2013

@piotr-cz I would love to but because of university work can't promise any time frame.

avatar garyamort garyamort - reference | - 2 Dec 13

Add a Comment

Login with GitHub to post a comment