I created a custom button in my command bar that opens up a new form with no fields defaulted. I want one field "Device Name" to have the value of the device that was selected from a gallery. I tried using this formula

and a few variations of this but I cannot get the value to patch to this field.

Does anyone have any experience with this or know if this is actually possible?
Thanks in advance for any help.