SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have multiple lines of JavaScript codes running in a Survey form "editForm.aspx". When I browse editForm.aspx directly it works well, but when I open the form by clicking 'respond to this survey' the dialog modal form opens and the JS code dos not run.

Do you have any idea?

share|improve this question

Please make sure your javascript at right location.

you should move you code inside

<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">


<asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">
<script id="onetidPageTitleAreaFrameScript">
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.