Skip to main content
Participant
November 27, 2024
Answered

How do you auto fill a text box based on a value from a list box

  • November 27, 2024
  • 1 reply
  • 341 views

I am just trying to get items from a list box to populate over to a text box.  The list just contains software a user needs and the selections would just need to be populated over so the selections can be easily read.

 

Thank you!

This topic has been closed for replies.
Correct answer try67

As the custom calculation script of the text field enter the following (let's say the list box is named "ListBox1"):

 

var v = this.getField("ListBox1").value;
if (typeof v=="object") event.value = v.join(", ");
else event.value = v;

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 27, 2024

As the custom calculation script of the text field enter the following (let's say the list box is named "ListBox1"):

 

var v = this.getField("ListBox1").value;
if (typeof v=="object") event.value = v.join(", ");
else event.value = v;
Participant
December 3, 2024

Thank you!