FYI below are the sample rules I use to test Autofill. You can see whether Autofill is working properly by importing these rules and going to theÂ
Practice Form -- you should seeÂ
42Â rules executed upon page load. When you click on the Add Field button, it will insert a new field; Autofill supports dynamically inserted fields, so the icon badge should now show 43 fields executed. If you monitor the console (F12), you should see that all events binded to the fields should properly fire.
The rules in the TESTS profile can be tested by going to the URL provided in the Name field (anything inside /* and */ is a comment and will be ignored by Autofill). There are countless rich text editor (RTE) components out there, and it is almost impossible to reliably autofill all of them since they work differently underneath and have vastly different HTML structures. Every time I verify that an RTE component works with Autofill, I will add to this collection of sample rules as part of a test suite.
If you don't want to overwrite your own rules when importing the sample data, then be sure to select the Append option when importing.Â
==
Sample data:
### AUTOFILL PROFILES ###,,,,,,
Profile ID,Name,Site,Hotkey,,,
c1,Practice Form,,,,,
c2,TESTS,,,,,
### AUTOFILL RULES ###,,,,,,
Rule ID,Type,Name,Value,Site,Mode,Profile
r1,0,"^fullname$","Tom Smith","tohodo.com",1,c1
r2,0,"^firstname$","Tom","tohodo.com",1,c1
r3,0,"^lastname$","Smith","tohodo.com",1,c1
r4,0,"^email$","t...@smith.com","tohodo.com",1,c1
r5,0,"^uname$","tsmith","tohodo.com",1,c1
r6,0,"^user$","tomsmith","tohodo.com",1,c1
r7,0,"^userID$","tom.smith","tohodo.com",1,c1
r8,0,"^ctl00_Content_bank$","0123456789","tohodo.com",1,c1
r9,0,"^ctl00_Content_bank_nr$","9876543210","tohodo.com",1,c1
r10,0,"^passengers\[0\]\.passengerName$","T. Smith","tohodo.com",1,c1
r11,0,"^colorpicker$","#0080c0","tohodo.com",1,c1
r12,0,"^calendar$","1984-04-01","tohodo.com",1,c1
r13,0,"^slider$","4.5","tohodo.com",1,c1
r14,0,"^q$","autofill","tohodo.com",1,c1
r15,0,"^clock$","12:00","tohodo.com",1,c1
r16,0,"^editDiv$","This field was autofilled!","tohodo.com",1,c1
r17,0,"^secret$","shhh","tohodo.com",1,c1
r18,0,"^state$","California","tohodo.com",1,c1
r19,1,"^pass$","blahblahblah","tohodo.com",1,c1
r20,1,"^pass2$","blahblahblah","tohodo.com",1,c1
r21,2,"^month$","""apr""","tohodo.com",1,c1
r22,2,"^year$","""1984""","tohodo.com",1,c1
r23,2,"^qty$","""5 apples""","tohodo.com",1,c1
r24,2,"^stars$","""*****""","tohodo.com",1,c1
r25,2,"^multi$","""B""|""D""","tohodo.com",1,c1
r26,2,"^fruit$","""Blueberry""","tohodo.com",1,c1
r27,3,"^g$","1","tohodo.com",1,c1
r28,3,"^b$","0","tohodo.com",1,c1
r29,3,"^m$","1","tohodo.com",1,c1
r30,4,"","document.querySelector('input[name=""test1""]').click();
document.querySelector('button[name=""test2""]').click();","tohodo.com",1,c1
r31,4,"","document.querySelector('input[type=""submit""]').click();","tohodo.com",1,c1
r32,0,"^name$","Tom S.","123formbuilder.com",1,c1
r33,0,"^email$","t...@gmail.com","123formbuilder.com",1,c1
r34,0,"^message$","Hello, world.","123formbuilder.com",1,c1
r35,0,"^desc$","This field was autofilled!","tohodo.com",1,c1
r36,0,"^Rich Text Editor, ckeditor3$","<p style=""text-align: center;"">This field was autofilled!</p>","tohodo.com",1,c1
r37,0,"^Rich Text Editor, ckeditor4$","<h1>This field was autofilled!</h1>","tohodo.com",1,c1
r38,0,"\bnicEdit-main\b","<ul><li>This field was autofilled!<br></li></ul>","tohodo.com",1,c1
r39,0,"\bql-editor\b","<h2>This field was autofilled!</h2>","tohodo.com",1,c1
r40,0,"^tinymce_ifr$","<pre>This field was autofilled!</pre>","tohodo.com",1,c1
r41,0,"^http://www\.tohodo\.com/autofill/wymeditor/iframe/default/wymiframe\.html$","<ol><li>This field was autofilled!</li></ol>","tohodo.com",1,c1
r42,0,"^yui2rte_editor$","<b>This field was autofilled!</b>","tohodo.com",1,c1
r43,0,"^yui2rte-iframe_editor$","<i>This field was autofilled!</i>","tohodo.com",1,c1
r44,0,"/* AngularJS: https://www.w3schools.com/angular/tryit.asp?filename=try_ng_example1 */
^name$","abc","w3schools.com",1,c2
r45,0,"/* Stack Overflow: https://stackoverflow.com/questions (go to any unanswered question) */
^wmd-input$","abc","stackoverflow.com",1,c2
### AUTOFILL OPTIONS ###,,,,,,
exceptions,"[]",,,,,
backup,0,2,,,,
manual,0,,,,,
delay,0,1,,,,
labelmatch,1,,,,,
overwrite,1,,,,,
vars,1,,,,,
sound,1,,,,,
voice,0,1,,,,
debug,0,,,,,
mask,1,,,,,
scale,1,,,,,
menu,1,,,,,