Skip to main content
Participant
Dec 6, 2016 4:33 PM UTC
Question

programed autocomplete

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

try67
Community Expert
Community Expert
Dec 6, 2016 4:35 PM UTC

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";

Translate