How to bind script on autocomplete widget when user click on suggestion item?

1
0
-1

Hello,

I have a form with a list of auto complete widget (that display reference ID from a list of product)

I have a script that auto fill others widget from the reference ID of the given item.

I would ike to "bind" or "link" my script to the autocomplete widgets when the user click on any suggestion (onSelect?)

Any hints/recommendations will be highly appreciated.

Best regards

1 answer

1
+1
-1

Hi Sabbe,

This bind mechanism is handle through the value property on the autocomplete, meaning that should work if:

  • Create a variable named "referenceID"
  • Use it in "value" property on autocomplete
  • Use it in your script as $data.referenceID

Cheers

Notifications