Function dropdown id was used. changed it to use the name of the element