> the form shares its view with other forms

In that case maybe you need a conditional block
to focus just if the element is to be present:

{{ if request.controller == "second_form": }}
  {{ =SCRIPT("$(document).ready(...);") }}
{{ pass }}

Reply via email to