0

I have a content type in a custom list form. When I click on new item I don't see the content type field on the newform.aspx form. I can see it on the edit for though. Is there a way to have a content type field shown on a newform?

Thanks in advance.

1

By default using OOTB capabilities of SharePoint you can select the Content Type from ITEMS tab in ribbon like below image:

enter image description here

To add the Content Type field in new form of list you need to develop custom form.

You check my answer given here for possible approach to do something like you want:

Add Content Type field to New Form

Or you can follow the steps given in the accepted answer from MSDN forum:

Show the Content Type on NewForm.aspx.

  • Thanks Ganesh. One question though if i only add a html code via jquery to my existing out of the box form to mimic the content type field and use presave action to submit the form will i need only the value of the new html in the presave action code? – naijacoder Oct 23 '19 at 12:27
  • If you are redirecting to the new form URL with the Content Type ID in it (as mentioned in first link) then you don't need to do anything. It will save data automatically – Ganesh Sanap Oct 23 '19 at 12:29
  • All good. I solved my issue by appending some html radio button(with images) to the form. When clicked i did some redirection based on the content type and it all seems to work just using the OOTB forms – naijacoder Oct 29 '19 at 5:46
  • Great. Glad it worked for you. Please upvote and accept it as an answer. – Ganesh Sanap Oct 29 '19 at 9:09

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.