Skip to main content
Participant
December 6, 2016
Question

programed autocomplete

  • December 6, 2016
  • 1 reply
  • 260 views

If a user enters the letter P in a text box 1 the complete word Purple is entered in to that text box 1 once the user tabs out of that text box.

If a user enters the letter R in a text box 2 the complete word Radio is entered in to that text box 2 once the user tabs out of that text box.

If a user enters the letter A in a text box 3 the complete word Apple is entered in to that text box 3 once the user tabs out of that text box.

etc.

this would be a programed auto complete.

can someone help me with the JavaScript?

thank you,

Rob

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
December 6, 2016

I'll give you the code for the first one and you can extrapolate from that for the rest.

Use this code as the field's custom Validation script:

if (event.value=="P") event.value = "Purple";