Hello,
Is it possible to determine if the user creates their own value in the dropdown box, instead of picking from the list of options?
I would like to trigger an event if they create their own value.
Thanks,
Mike
Hello,
Is it possible to determine if the user creates their own value in the dropdown box, instead of picking from the list of options?
I would like to trigger an event if they create their own value.
Thanks,
Mike
You would need to place your own change script for the value prop:
def valueChanged(self, previousValue, currentValue, origin, missedEvents):
if currentValue and currentValue.value:
if self.props.multiSelect and self.props.allowCustomOptions: # only takes action in specified conditions
option_values = [option.value for option in self.props.options]
for option in currentValue.value:
if option not in option_values:
# custom option found