WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?

So I would take of on your html form the onsubmit()=…, once isnt needed and your javascript function should only have something like this.

document.getElementById("form_1").style.display = "none";

or

document.getElementById("form_1").style.visibility = "hidden";

this should do the job, if for some reason it does not, change the onclick from the input to the form tag.

Your code should look like so:

<form onclick="myClick()" id="form_1" name="form_order_id" action="#" method="post" >               
   <input type="hidden" name="frub_id" value="<?= $order->get_id() ?>" />
   <input type="submit" name="<?= $order->get_id() ?>" value="<?= $order->get_id() . $edit_form1 ?>" />
</form>
<script type="text/javascript">
   function myClick(){
      document.getElementById("form_1").style.display = "none";
   }
</script>