PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Prepopulating values with a custom button

  1. 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?

    Posted 12 years ago on Thursday March 22, 2012 | Permalink
  2. Yes there is...just add the disabled attribute to your input fields, and do not have any modification fields except those you want them to have (e.g. conditional, etc.).

    Posted 12 years ago on Monday April 23, 2012 | Permalink