Hi all,
I'm sure this is possible so sorry if it's dull! I want to be able to set a value in a dialog as the parent record.

So in that screenshot, I plan to add a lookup column to the 'Ticket' entity which looks up 'QTA Responses', and I would like it to set automatically when the dialog opens. I would also like to populate the Company column with the corresponding value on the parent.
I assume this is javascript of some sort. A couple of considerations - we also use the same form in the main app, so it would be great for it to know that it should only do it when opened in dialog; secondly we will likely want the same dialog from other tables, and they will listed in other columns, so a "if QTA Response then, If Account then, If Recommendation then..." will be needed eventually.
Any and all help very gratefully received as always.
Nick