Avatar

Correct answer by
Level 10

Yes you can.

Here's how.

1) Allow custom text entry on the drop-down list.

p2.png

2) On the binding tab, select 'Specify Item Values'. By default when you click 'Specify Item Values' Designer will add values starting with 1. Since I added the List Items in the order 'Yes', 'No', 'N/A' they are assigned 1, 2, 3.

p3.png

Now a user can enter a value into the field and the respective text value will appear. For example, enter '1' and 'Yes' appears.

Probably a good idea to add some validation to each drop-down so only 1, 2, or 3 can be entered. For example....

// form1.page1.subform1.q1::exit - (JavaScript, client)


if (!(this.rawValue == 1 || this.rawValue == 2 || this.rawValue == 3)) {

  xfa.host.messageBox("The answer must be 1 - Yes, 2 - No, or 3 - N/A");

}

Steve

View solution in original post