[form] [scripting] fixes and cleanups for new triggering system