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?


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">
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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