How to pass the highest selected number in a matrix to another field