Is there a way to compose a script to grab the value of a field in the current layout without knowing ahead of time which layout that will be? That is, say I have 5 different layouts that have a Last Name field. I'd like a single script to, among other things, grab the value in the current layout's Last Name field. I don't see how to do that. I guess I need to be able to use something like
<current layout>::Last Name
in the script.