Re-posting: Issue with new application builder's look-up feature

Re-posting: Issue with new application builder's look-up feature

My app has a number of forms that have look-ups to a database of room names. Thus, records submitted pull these room names using the look-up. The reports of these records show the room names as expected. However if I try to write any code to reference a room name, only the ID values of the room names are available, not the text versions. How can I write any functions that have text value inputs when only ID numbers can be referenced?

Here's an example