Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mehrshaddarzi/acf-hidden-field/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Hidden Field For ACF (Advanced Custom Fields) WordPress Plugin

for Use Custom JavaScript Action in Input, use acf_hidden_field_custom_script action:
add_action('acf_hidden_field_custom_script', 'add_default_value');
function add_default_value($field) {
?>
<script>
jQuery(document).ready(function ($) {
/**
* https://www.advancedcustomfields.com/resources/javascript-api/
*/
acf.addAction('load', function () {
let input = $("#acf-<?php echo $field['key']; ?>");
if (input.val().length < 1) {
input.val("a new value");
}
});
});
</script>
<?php
});