Dropdown previous value

Hi Team,

Is there any direct or indirect way to get the previousValue or oldValue from a dropdown. It can be either 'selected Value' or 'selected Label' property.

Thanks in advance!
Sam

EDIT: My answer was irrelevant as this is Ignition 7.9 as pointed out by Louis below. Sorry !

Careful, it's marked as Ignition 7.9 so not Perspective.

@sathianandan.dharmas

On the component add a propertyChange script, then you would use something similar to this code.

if event.propertyName == 'selectedValue':
    oldValue = event.oldValue
1 Like

I have in the past made it so that each new manually entered value in the drop down gets added to the list of available items (options) in the drop down. Is that what you are trying to do.

My experience was using Perspective drop down component.... but I see you have tagged the post as Ignition v7.9 (no Perspective).

Hi @lrose , that worked. I don't know why I didn't think of that.

Thanks a lot for the quick response!