Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.