Borox
Member
Hi,
I added a button in a form to create a pdf (instead of using the 'PDF' button).
Here is the JS of the button:
It works great in the form, but nothing happens in the detail view ( I can see the button but it doesn't seem to 'work'), it's normal?
Thanks.
I added a button in a form to create a pdf (instead of using the 'PDF' button).
Here is the JS of the button:
JavaScript:
var no_evt = document.id('travaux___id').get('value');
window.location.href ="/index.php/collaborer/evenements/travaux-non-termines/details/5/"+no_evt+"?format=pdf";
It works great in the form, but nothing happens in the detail view ( I can see the button but it doesn't seem to 'work'), it's normal?
Thanks.