Page 1 of 1

Submit button showing on DVP

Posted: 2022-01-18 00:30
by utony
Anyone know how to fix this new bug I have noticed? When printing more than 1 page, a Submit Button Shows on the print. It does not show if it is only page. Soon as it goes to 2 print pages, the button shows up. I need to remove it. This just showed up when I updated to 22.10.

Screenshot attached.

Re: Submit button showing on DVP

Posted: 2022-01-20 21:01
by utony
167 people have viewed this post, no one is having this problem? Come on

Re: Submit button showing on DVP

Posted: 2022-01-21 17:51
by a.gneady
I wasn't able to reproduce this issue on my side, but maybe it appears under specific conditions. Could you try adding this code to hooks/footer-extras.php and see if it fixes the issue:

Code: Select all

<script>
   $j(function() {
      $j('input[type=submit]').css('visibility', 'hidden')
   })
</script>

Re: Submit button showing on DVP

Posted: 2022-01-21 18:00
by jsetzer
Sometimes that submit button appears when dumping any characters before html output starts, for example

1) when var_dumping
or echoing values too early

2) I have also seen it when, by accident, there were extra characters at the beginning of a page

3) or when a file had been saved as UTF-8 WITH BOM. Those BOM extra characters can cause this, too.

Well, that's just my personal experience.

Re: Submit button showing on DVP

Posted: 2022-01-21 18:49
by utony
I will try the code fix tonight. I only see the bug when the printing goes over one page. If it is just one page, I see no issues. Soon as it goes to two pages, it appears. I have 11 applications. I updated 9 of the applications to 22.10. All of them are doing this. I checked my other 2 apps, running 5.96 and it does not appear. SO I just wanted to point this out. With all the AG users, I figured someone has to be experiencing this issue. Thanks, I will post my reply once I try that code fix!!!!

TK

Re: Submit button showing on DVP

Posted: 2022-01-21 19:03
by utony
IT WORKS!!!! Thank you so much. I had to post in the header-extra, the only thing I can think is the appgini helper script was causing this bug. soon as I posted that code fix, it was gone! Either way, it is fixed, so thankful. Thank you.


screen shot attached for review in case others run into this issue.

TK