Why do you need the user to specify it as a custom field?

You could alternately just look all all configured custom fields and see if one fits.