Skip to main content
Nintex Community Menu Bar

Changing ContentTypeId in URL for DispForm.aspx not changing the form

  • April 7, 2021
  • 0 replies
  • 49 views
  • Translate

Forum|alt.badge.img

I am trying to change the form on a button click by forming URL and adding ContentTypeId to it.
It works perfectly fine when the form mode is New or Edit, but when I try to do same for DispForm, it doesn't change the form despite showing new ContentTypeId in the URL.
Below is snippet what I am doing on button click - 

window.location.href=<siteurl>+"/Lists/<ListName>/DispForm.aspx?ID=123&ContentTypeId=<ContentTypeId>";

 

Did this topic help you find an answer to your question?

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings