Re: Autofill Gender and DOB

246 views
Skip to first unread message
Message has been deleted
Message has been deleted

Autofill Extension

unread,
Feb 17, 2022, 12:30:48 AM2/17/22
to Autofill Extension
You can hover the mouse over the "?" in the column header or consult the online docs to see all the attributes that you can match again for the Name field:
  • name
  • id
  • title
  • placeholder
  • aria-label
  • aria-labelledby
  • aria-describedby
  • data-bind (Knockout)
  • data-reactid (React)
  • ng-model (AngularJS)
  • value (only applicable to checkbox/radio inputs)
  • src (only applicable to iframe-based rich text editors)
  • class
For gender you should be able to create a rule around the 'class' attribute; for DOB you can use the placeholder attribute...

Type = Select
Name = form-control required txtManifestGender
Value = "Female"

Type = Text
Name = Please select date of birth \(DOB\)
Value = 1965-02-17

On Tuesday, February 15, 2022 at 9:26:31 PM UTC-8 Jane Ang wrote:
DOB1.jpgdob2.jpg

On Wednesday, 16 February 2022 at 13:22:51 UTC+8 Jane Ang wrote:
Hi everyone, I am 'IT noob", I have tried few days trying to figure out how to get the name and value of the Gender and DOB to put into to autofill form but still failed. Can someone please help me in this?

class="form-control required txtManifestGender"

class="txtManifestDOB required form-control hasDatepicker"

001.jpg002.jpg

Jane Ang

unread,
Feb 17, 2022, 2:50:38 AM2/17/22
to Autofill Extension
Thank you very much for your help. It works for the gender but not the DOB. I will play around, hopefully it will work eventually.

Autofill Extension

unread,
Feb 17, 2022, 5:56:52 PM2/17/22
to Autofill Extension
Have you tried to right-click on the DOB field and select Autofill / Add rule for this field?

Jane Ang

unread,
Feb 18, 2022, 2:49:58 AM2/18/22
to Autofill Extension
Yes, but it doesn't has Add rule for this field. It only has Add rule for this page.

Autofill Extension

unread,
Feb 18, 2022, 3:55:02 PM2/18/22
to Autofill Extension
Ah, after looking at your screenshot again I think I know why now: the DOB field is set as "read-only". You'll need to use a JavaScript rule then. Try adding this (and remove the current DOB rule):

Type = JavaScript
Value =

let dob = document.querySelector('input[placeholder="Please select date of birth (DOB)"]');
if (dob) {
  dob.readOnly = false;
  dob.value = '1965-02-17';

Jane Ang

unread,
Feb 20, 2022, 1:25:36 AM2/20/22
to Autofill Extension
I managed to do it now.  Thank you so so much. You have been so helpful!!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages