I have created a popup window to remind users that they have to fill a field value to proceed, like this: [1]: https://i.sstatic.net/kkkZV.png
I would like to add this field in the popup window, so users can fill the value of this optionset like below: [2]: https://i.sstatic.net/rwniw.png
and this value to be filled in form too. How can I achieve this?
To remind users to fill the field, better to make the field mandatory rather than asking in dialog. Also the 2nd screenshot you added is of a different form i.e. Eg: 1) On Opportunity - > click won -> this opens Opportunity Close form (a different entity) 2) Case -> Resolved -> this opens Case resolution form
Hence if you really want to show as dialog, use Open webresource