Multipage form has inline javascript on buttons - conflicting with CSP policy: "Refused to execute inline event handler"

Hi, using multipage forms.
“Next”/ “Previous” buttons have inline JS handlers.
onclick="jQuery("#gform_target_page_number_xx").val("2"); jQuery("#gform_xx").trigger("submit",[true]); "

I have a CSP policy restricting running inline scripts.
this means the inline scripts are blocked.

How can this be bypassed ? this code needs to be wrapped in tag with a nonce attribute, or placed in an external JS file.
any suggestions ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.