Easy Fill javascript library is for developers and testers. It gives a link to the top left corner of the page and when it is clicked, it fills placeholder content into your form that is on the current page.
Add this line at the bottom of your layout/html file:
<script type="text/javascript" src="/path/to/easy_fill-0.0.2.min.js"></script>
A link will be shown at the top left corner of the browser with label: 'Easy Fill'. Click that to fill the form on your page.
form tag class options
-
fill-form
, perform auto fill. -
skip-form-fill
, skip auto. -
skip-data-overwrite
, skip input field value overwrite.
Note: Please refer examples/demo-1.html
and examples/demo-2.html
for examples.
- jQuery (https://github.com/jquery/jquery)
- Faker (https://github.com/Marak/faker.js)
Bug reports and pull requests are welcome on GitHub at https://github.com/rubyeffect/easy_fill.
The library is available as open source under the terms of the MIT License.
August 30, 2015
-
If there are multiple forms on a page, only for the desired forms a value is filled in input field by adding 'fill-form' class to form tag. The rest of the forms will be ignored.
-
If there are multiple forms on a page, desired forms can be ignored for auto fill by adding 'skip-form-fill' class to form tag. The rest of the forms input fields will be auto filled.
-
To avoid overwrite of existing value of form fields, add 'skip-data-overwrite' class to form tag.
Sanjay Vedula([email protected])
RubyEffect builds intuitive, live and elegant software that solves real world problems. We love open source and it's community.
Liked this library? You may also like the articles we post on our blog. Please do check
We would love to work on your ideas and see them grow. Say hello @ http://rubyeffect.com/contact