An Example on Custom connector in IdentityIQ

The first thing I’d try is removing the Javascript part attempting to validate a not-null value and see if the page loads correctly then. If nothing else, it should help narrow the scope of where your issue with the page loading to the XHTML elements and not the Javascript elements.

Also, when the page fails to load, check your IIQ logs and grab the error message and stacktrace - that should help with debugging your issue as well.