Here's an example of what I'm aiming for. In this case the "Show values" command uses FeatherPad to open a text file, "file1", on my desktop.
yad --form --width="400" --height="400" --field="" --field="" --field="" --button="Show values":"featherpad /home/bob/Desktop/file1" --button=gtk-cancel:1 --button=gtk-ok:0
What I'd like to do is open "file1" with "Show values" when the cursor is in field 1, open "file2" when the cursor is in field 2 and open "file3" when the cursor is in field 3. In other words, the file to be opened depends on the field.