How can I check if a field is an entry field?

You can use following command: if I[screen element]