Auto-fill / default value plugin?

Hi, does anyone know of a plugin that allows you to automatically insert a default value into a field when a new item record is being created?

thanks,

Joe Easterly

I don’t know of anything that would work out of the box, but if you have some PHP/Javascript experience, I think you could probably create a simple plugin to do this using something like…

class DefaultValuesPlugin extends Omeka_Plugin_AbstractPlugin
{
	protected $_hooks = array(
		'admin_footer',
	);

	public function hookAdminFooter(){
	?>
          <script>
          alert('delete this and add some custom javascript here to pre-fill forms with default values');
          </script>
        <?php
	}
}

The above is way over-simplified, but it’s probably about where I would start.

See: https://omeka.readthedocs.io/en/latest/Tutorials/index.html#plugin-basics