You are viewing limited content. For full access, please sign in.

Question

Question

Auto Click AutoFill Button in Collection

asked on October 11, 2016

I am using multiple lookup conditions in my Form within a Collection.  Therefore there are plenty of Auto Fill Buttons in the collection.  Does someone have a java script to auto click on the AutoFill Buttons in collection for different rows?

Thanks

0 0

Replies

replied on October 11, 2016

This is the code I use to hide the autofill button and click it automatically when the user exits the text box where the autofill button is.

CSS

button.autofill { display: none; } /*hides the autofill button*/

Javascript

$(document).ready(function () {
  //click hidden autofill button on exit of text box 63
  $( '#Field63' ).blur(function() {
    $( ".autofill" ).trigger("click");
  });
});

 

2 0
replied on October 11, 2016

Thanks! I got it working in a normal field.  I am looking to do this in a collection with multiple rows.

0 0
replied on February 3, 2017

This is a very elegant solution, thank you!!!

0 0
replied on July 27, 2018

FYI, Forms now includes this feature.  Under Lookup Rules, uncheck the "Show Auto Fill Button" and it will automatically re-run the lookup whenever a change in the selected fields occurs.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.