This is a helper function to use when coding extender inserts.
The user supplies the window id and field name and the field id is returned