Unable to correctly develop autofill for a drop-down menu.

249 views
Skip to first unread message

derek koabel

unread,
Oct 17, 2016, 10:04:22 PM10/17/16
to Autofill Chrome Extension


<label class="select optional control-label" for="order_billing_state" id="state_label">province</label>
<select class="select optional" id="order_billing_state" name="order[billing_state]"><option value=""></option>
<option value="AB">AB</option>
<option value="BC">BC</option>
<option value="MB">MB</option>
<option value="NB">NB</option>
<option value="NL">NL</option>
<option value="NT">NT</option>
<option value="NS">NS</option>
<option value="NU">NU</option>
<option value="ON">ON</option>
<option value="PE">PE</option>
<option value="QC">QC</option>
<option value="SK">SK</option>
<option value="YT">YT</option></select>

If this is the returned value when inspecting the elements of a page, how could I develop this to autoselect option 'ON'? I have tried to use a simple drop down menu through a selection coding but unfortunately it is not selecting the content in the drop down for me. Any assistance? Thank you ahead of time!

Please note, that this option comes prior to another option on a webpage but must be selected after the preceding option. E.g Canada must be selected before it translates over to the selection menu for provinces.

thdoan

unread,
Oct 19, 2016, 10:57:57 PM10/19/16
to Autofill Chrome Extension
Try this:

Type = Select
Name = ^order_billing_state$
Value = ON

Alan Pang

unread,
Oct 25, 2016, 4:00:32 PM10/25/16
to Autofill Chrome Extension
Hi there, I asked the same question on the other thread, but it seems like after I copy the dropdown's HTML code, it happens to be the same with OP. 

I tried Value = ON instead Value = 9 originally.

I still can't seem to get the autofill to select ON

thdoan

unread,
Oct 25, 2016, 10:33:39 PM10/25/16
to Autofill Chrome Extension
Instead of Value = ON, try Value = "ON"

Alan Pang

unread,
Nov 3, 2016, 11:31:05 AM11/3/16
to Autofill Chrome Extension
Tried Value = "ON" still no go 

Is it impossible to select province automatically ??

Alan Pang

unread,
Nov 17, 2016, 7:16:58 PM11/17/16
to Autofill Chrome Extension
OK, something is wrong here. 

My Work laptop (Lenovo thinkpad) has chrome as well as autofill because it links to my account. 

However when I login to supreme checkout page. It actually able to select the province for me (which is ON) !!!

When I went back home and test out the autofill option, I still CANNOT able to fill out the province. So I go ahead and duplicate what I have in the autofill option in the laptop to my home PC. I find out that in my Laptop autofill option only contains 4 Form fields which are my CC info ONLY and my address form fields are all missing, and yet it still be able to fill out everything in the checkout page. 

This is so weird, I don't understand why my laptop chrome be able to fill out EVERYTHING even without those address form field. On the other hand if i copy the same thing to my home PC, nothing is fill out except my CC info. 

I double check the app version of both machine and they are both identical (which is 6.12.2). 

So my question is, any idea why this is happening because I would like my home PC to be able to do the same thing because my work Laptop is VERY SLOWWWW

Thanks 

Let me know what information I need to provide to help you solve my issue here.

thdoan

unread,
Nov 18, 2016, 1:03:23 AM11/18/16
to Autofill Chrome Extension
It is hard to troubleshoot without actually being in front of your PC, but you can try increasing the Delay.

Alan Pang

unread,
Nov 18, 2016, 11:18:03 AM11/18/16
to Autofill Chrome Extension
Thanks for replying,

I tried the delay is still a no go. 

My laptop is able to pick the ON so i think I'll just stick with my work laptop then.
However it's really weird that this issue is happening that i can't get my home PC to work. 

but thanks for the help anyway. 

thdoan

unread,
Nov 21, 2016, 5:07:21 AM11/21/16
to Autofill Chrome Extension
Here's one more thing you can try -- use a JavaScript rule. Example:

Type = JavaScript
Value =

setTimeout(function() {
  document.querySelector('[name=order_billing_state]').value = 'ON';
}, 5000);

This will programmatically set the select to ON after 5 seconds. If that doesn't work for you, try increase the delay to something higher like 10 seconds (10000).
Reply all
Reply to author
Forward
0 new messages