You are here

README.txt in Autofill 6

Description

This is a simple module to allow the admin user to turn any textfield, textarea
into a simple but very effective autofill field to explain the users how to
fill in the fields. And as the user clicks in the textfield, textarea,
then the help text will simply disappear and allow the user to fill in the
information as described. In layman's term this module enables admin user to
pre-populate a textfield, and textarea with values to describe how users
should fill in the form according to the way that the admin users would like
it to be filled in. eg, link text field: you could add -> http://

The admin user will be able to use color to describe the default value and
prepopulate value color, for better assistance to the user who has to fill in
the form.
Admin user will be enabled to fill in the setting page form
(admin/settings/autofill) and save the information in the system. Use a web
tool like Firebug etc. to access the source code and then you'll be able to
copy the textfield/textarea class or ID and paste it into the field that
says ID.

But if the admin user don't want to use this method there is a sample.autofill.js file
that could be saved to anything that admin user would like. Please have a look at 
the code below.

Call the Plugin like so:
Drupal.behaviors.autofill = function(context) {
  $("#edit-field-test-0-value").autofill( {
    value: "Hallo who?",
    prePopulate: "Hallo world",
    defaultTextColor: "#666666",
    activeTextColor: "#000000",
  }
}

Requirements:

Before installing this module make sure you also download libraries
api http://drupal.org/project/libraries
Autofill is depended on the libraries module.

You'll also need to download a third party javascript file created
by Joemsak jQuery-AutoFill using git ect.
git@github.com:rcb-ferreira/jquery-autofill.git

Installation:

1.Upload the Autofill module in this location sites/all/module/.
2.Enable the module, please make sure the libraries module is also enabled.
3.Create a libraries folder in the sites/all directory in the libraries folder
paste or clone the jquery-autofill folder from git in the libraries folder, it should look like this 
sites/all/libraries/jquery-autofill.
4.Enable the autofill module.
4.Go to Admin > Settings > Autofill to access the Autofill settings page.

Instruction:

On the Autofill page you'll see the following fields:
Default Text color:
Admin user will be able to choose any color to describe the default text better.
This text will disappear when user clicks in field so it's a good idea to use
bright colors to describe what you would like the user to enter.

Active Text Color:
Admin user will use this color option to specify the color of the help text,
normally this would be the standard site text color.

Fill in autofill fields:
1.ID/class: Fill in the id or class of the textfield, textarea you want to
autofill (eg. #email-text-area).
2.Empty value: Fill description to describe what the field should be
populated with. eg. Please fill in your email address.
3.Pre-populate value:Force users to populate the filed with the correct values,
eg. user http:// then user will be able to add the www.site.com etc.

Sponsors:
This module was sponsored by NoJoShmo.com and is maintained by Rui Ferreira.
This module is based on the work done by Joemsak jQuery-AutoFill

File

README.txt
View source
  1. Description
  2. This is a simple module to allow the admin user to turn any textfield, textarea
  3. into a simple but very effective autofill field to explain the users how to
  4. fill in the fields. And as the user clicks in the textfield, textarea,
  5. then the help text will simply disappear and allow the user to fill in the
  6. information as described. In layman's term this module enables admin user to
  7. pre-populate a textfield, and textarea with values to describe how users
  8. should fill in the form according to the way that the admin users would like
  9. it to be filled in. eg, link text field: you could add -> http://
  10. The admin user will be able to use color to describe the default value and
  11. prepopulate value color, for better assistance to the user who has to fill in
  12. the form.
  13. Admin user will be enabled to fill in the setting page form
  14. (admin/settings/autofill) and save the information in the system. Use a web
  15. tool like Firebug etc. to access the source code and then you'll be able to
  16. copy the textfield/textarea class or ID and paste it into the field that
  17. says ID.
  18. But if the admin user don't want to use this method there is a sample.autofill.js file
  19. that could be saved to anything that admin user would like. Please have a look at
  20. the code below.
  21. Call the Plugin like so:
  22. Drupal.behaviors.autofill = function(context) {
  23. $("#edit-field-test-0-value").autofill( {
  24. value: "Hallo who?",
  25. prePopulate: "Hallo world",
  26. defaultTextColor: "#666666",
  27. activeTextColor: "#000000",
  28. }
  29. }
  30. Requirements:
  31. Before installing this module make sure you also download libraries
  32. api http://drupal.org/project/libraries
  33. Autofill is depended on the libraries module.
  34. You'll also need to download a third party javascript file created
  35. by Joemsak jQuery-AutoFill using git ect.
  36. git@github.com:rcb-ferreira/jquery-autofill.git
  37. Installation:
  38. 1.Upload the Autofill module in this location sites/all/module/.
  39. 2.Enable the module, please make sure the libraries module is also enabled.
  40. 3.Create a libraries folder in the sites/all directory in the libraries folder
  41. paste or clone the jquery-autofill folder from git in the libraries folder, it should look like this
  42. sites/all/libraries/jquery-autofill.
  43. 4.Enable the autofill module.
  44. 4.Go to Admin > Settings > Autofill to access the Autofill settings page.
  45. Instruction:
  46. On the Autofill page you'll see the following fields:
  47. Default Text color:
  48. Admin user will be able to choose any color to describe the default text better.
  49. This text will disappear when user clicks in field so it's a good idea to use
  50. bright colors to describe what you would like the user to enter.
  51. Active Text Color:
  52. Admin user will use this color option to specify the color of the help text,
  53. normally this would be the standard site text color.
  54. Fill in autofill fields:
  55. 1.ID/class: Fill in the id or class of the textfield, textarea you want to
  56. autofill (eg. #email-text-area).
  57. 2.Empty value: Fill description to describe what the field should be
  58. populated with. eg. Please fill in your email address.
  59. 3.Pre-populate value:Force users to populate the filed with the correct values,
  60. eg. user http:// then user will be able to add the www.site.com etc.
  61. Sponsors:
  62. This module was sponsored by NoJoShmo.com and is maintained by Rui Ferreira.
  63. This module is based on the work done by Joemsak jQuery-AutoFill