Replace inline JS of FormEngine reload request
FormEngine is able to request a reload of the current document, if a field with dependents is changed, e.g.
CType. Currently, each of such fields has an
onclick attribute, the latter for checkboxes, which either renders a modal to confirm the reload or saves the document and reloads the page, depending on the user's configuration.
In order to progress with the CSP efforts, the handling should get extracted.