I like to use a value of a lookup list for calculation in a Form Script.
I had a picklist and I could access the value of the picklist:
priority = crmForm.all.prioritycode.DataValue
I have now replaced the picklist with a lookup field. It contains two attributes NAME & DURATION. I use the NAME attribute to populate the Form Control. But now I like to get the value of the DURATION attribute to do some calculation with.
How do I do this?