Attached is my proposal. To bring up the pop-up menu, you can click all over the page (except on all the fields).
This is a "basic" script where you must indicate the name of the field you need to see in the pop-up menu in an array. The array corresponding to the readonly status is in the same order.
Let me know if you have any questions or if you catch an error I did.