SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

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 would like to modify modal dialog for add/edit list items. Precisely, if i got some error message because user didn't enter correct informations in modal form (I have validators), then - I want to modify autogenerated "Return to web" (error modal dialog) link TO return user to "add/edit dialog with inserted ("bad") data" again instead of get redirected to site url address(if he click that one and only autogenerated link).

Does somebody know which file i need to modify and is that possible?

share|improve this question
up vote 0 down vote accepted

Usually these pop-up dialogs are either initially hidden divs on the page they pop-up from, or they are regular application pages in the LAYOUTS directory that are retrieved and rendered by JavaScript. So the answer is edit either the source page, or edit the application page. It is possible, but it can feel like a bit of a hack.

Obviously you will want to be editing copies of any out-of-the-box SharePoint pages for the usual reasons.

Just to clarify, by LAYOUTS I mean C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS.

share|improve this answer
Thanx, I did small investigation and got the same conclusion. – trip Jan 10 '11 at 15:35

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.