storing the value

hi,

i have form in tht i perform look up in tht look up i am getting 3 values?

ex:name,id,unit (three r coming from 3 diff data sources)

here my question is in tht look up i select value in form it was showing name, as well as datasource also name,

is there any chance to store id in table in place of name?

if anybody know suggest me,

thanks in advance

Generally names will not be unique.

you can write the code in the validate method of the field in the form data source.