Get text from a Zoho CRM field in Zoho Creator

Get text from a Zoho CRM field in Zoho Creator

As we know Lookup field in deluge script (input.lookup) gets record ID from lookup table(form) regardless our display settings.
To access fields in lookup forms we have to use
  1. val = formname[ID ==  input.lookup].field;
My question is, if I use a Zoho CRM field in my form with a field ID like Details_ID how can I get the text (and not the ID) of the selected field?
For example this one returns the ID
  1. Name = input.Details_ID;