Moved the logic to form.js to make it morre generic

Closes #3400320

Merge request reports

Loading