I've been following the excellent suggestions for adding a custom field button from WPSmith and have managed to get as far as having my own custom button that is a replication of the "Hidden" custom field button and it works, etc.
I want to pass values to Advanced tab for the button where the "Default Value" has "Insert variable" selected and the value is set to "{foo}". I would like the "Allow field to be populated dynamically" to be ticked and the "Parameter Name" preset to "bar".
And finally I'm just curious if there's a way to make the whole field uneditable for the user? So all the user does is click the button, it adds the above and then they don't muck with it any more?