I have two buttons at the bottom, one simply submits the form as normal, the other submits the form and opens the pop up where users can upload files to the entry.
I need to append the entry id to the end of ‘/demo/portfolio/index.php/account/upload-asset’ so that the files are added to the correct entry.
[removed]
$(document).ready(function(){
var thisform = $('#form');
$("#button1").click(function(){
window.open('/demo/portfolio/index.php/account/upload-asset', 'formpopup', 'width=600,height=800,resizeable,scrollbars');
thisform.submit();
});
$("#button2").click(function(){
thisform.submit();
});
});
[removed]