Copying forms in Admin Order Entry
Posted: Sun Sep 29, 2019 10:44 pm
Hello. I am trying to edit the admin create order page (sale/order/add) so that input-firstname gets copied in input-payment-firstname, input-payment-firstname to input-shipping-firstname, etc by just pressing the next button.
I put in tpl
<script>
function copy()
{ var input-firstname = document.getElementById(input-firstname);
var input-payment-firstname =document.getElementById(input-payment-firstname);
input-firstname.value = input-payment-firstname.value; return false; }
</script>
and call the function on the button with onclick.
Nothing happens however. Any help?
I put in tpl
<script>
function copy()
{ var input-firstname = document.getElementById(input-firstname);
var input-payment-firstname =document.getElementById(input-payment-firstname);
input-firstname.value = input-payment-firstname.value; return false; }
</script>
and call the function on the button with onclick.
Nothing happens however. Any help?