Success

User tests: Successful: Unsuccessful:

avatar Achal-Aggarwal
Achal-Aggarwal
16 Aug 2013

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

avatar Achal-Aggarwal Achal-Aggarwal - open - 16 Aug 2013
avatar drmmr763
drmmr763 - comment - 17 Aug 2013

So two things:
1) Can you please squash these commits? It's a 103! (@davidhurley made me say that)
2) You're failing the travis-ci, so you need to look at that and see what's up there.

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 17 Aug 2013

Now Travis is passing.
I have created a new branch having single commit https://github.com/Achal-Aggarwal/joomla-cms/compare/gsoc-fields-attr-single-commit

avatar davidhurley
davidhurley - comment - 17 Aug 2013

Thanks! Please submit that new branch as a PR and I'll close this one.

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 17 Aug 2013

replaced by #1763

avatar wilsonge
wilsonge - comment - 17 Aug 2013

If this has been replaced can you close this one please :)

Add a Comment

Login with GitHub to post a comment