Gergerly – that’s fine I didn’t want to have real-time values.
If anybody wondered – I ended up up with attached script (will append first custom field from layout info). Need to make these buttons work nicer but it works.
Previous question: Is there a way in GDL to check if some variable changed its value?
There is GLOB_MODPAR_NAME but returns null after you click UI_Button.