Script block & form refresh problem

Hi

We recently upgraded from 7.1 to 9.5 and I’ve come across this strange problem.

In 7.1 we had an async command button which refreshed the form amoung other things. This would run various scripts on the page everytime the button was clicked.

In 9.5 this refresh does not cause the scripts to run even although the portlet is exactly the same. The scripts run on entry to the portlet but never on button click.

I’ve tried entering “PageForm:scriptBlock” specifically in the refresh section in the 9.5 version which does run the scripts but causes other issues with dynamic values not being reflected as updated on the page, which does happen otherwise.

Any ideas welcome

Thanks