Recently check value in checkbox

Recently check value in checkbox

Is there a way to get the most recently checked value in a multi select checkbox?

I need to execute some code that depends on the most recently checked item in a multiselect checkbox.

I have been trying to use list functions to figure this out.

I seem to be having a problem where the order of the list is the same as the order of the check box field items. Another words as I check items off they always appear in the list in the same order as the check box field check box items are set up. 

I cant figure out how to tell what the most recently added item is since the order of the list seems to be different than how I would expect it.

How can i find the most recently added list item?





I know a check box field is a list value. Are new values always added to the end of the list meaning? if I counted the number of items in the list then used list index to grab the last value it would solve my issue.

would this work?