You want to have a look at custom field functions: that may be a better solution.
Please Login to Report Topic
Please Login to Share Feed