I want the edit form to behave differently on different list views. Therefore I have attached JavaScript to the list edit form. The problem is how can I differentiate from which view it was invoked?

1 Answer 1


You could try document.referrer but it isn't failsave when used in combo with MDS

Better is to attach an URL parameter to the Edit buttons in the View

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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