This problem has nothing common with form or document number. You don't really need to loop forms, since it can be set just -1 in form number to through all of them.
What about this issue - no WYSIWYG while execution - it is related with useragent. Since it is set randomly, you should set your...