Expand my Community achievements bar.

SOLVED

Auto populate a textfield based on users input

Avatar

Level 2

Hi All,

Working with Designer ES ver. 8.2, and I am looking to see if it is possible to auto fill another field based on an end users input.

Example: End-user enters a 6 digit departmentCode for a program; in turn the field opposite to the departmentCode auto fills with a corresponding programCode; if they do not input the correct 6 digit departmentCode the field will return a null value.

I am trying to move away from my current auto fill drop-down option, so end-user is less likely to select incorrect departmentCode from drop-down

Best Regards

Jeff

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

one method for the change:Event of the input field.

if (xfa.event.fullText == "ABC123")

     {

     Textfield2.rawValue = "Some text";

     }

else

     {

     Textfield2.rawValue = null;

     }

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

one method for the change:Event of the input field.

if (xfa.event.fullText == "ABC123")

     {

     Textfield2.rawValue = "Some text";

     }

else

     {

     Textfield2.rawValue = null;

     }

Avatar

Level 2

radzmar,

Thank you for your response, I assumed there was a simple script to accomplish my task. I had assumed that the .rawValue property would have come into play and was unaware of the  xfa.event.fullText property.

Thanks Again