Tag Info

New answers tagged

0

There is also a third option, creating customized forms in Visual Studio: Create Custom New Edit and Display form for sharepoint list.


0

I figured it out. Had to use JavaScript for this. I was able to grab the current item's content type by looking at the ID parameter, grabbing the item based off that and getting its content type. function queryString(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)"),n=t.exec(location.search);return ...


2

I'm actually fairly sure this isn't possible -- and the reason might seem kind of silly, but is a limitation of the architecture having to deal with content types: Forms (edit/view) are associated with a particular content type; so when you go to a list and edit an item, the first question SharePoint asks before it renders any form is 'what content type is ...


0

I am having the same issue. Considering it has been two months since an update, I guess no one has found an answer.


0

XSLT attribute disable-output-escaping will help you here. In your form you have to do something like this. <xsl:value-of select="@Notes" disable-output-escaping="yes" /> Hope this helps.


1

I found a Solution for this case. While using the attributes UseDefaultListFormWebPart="FALSE" or UseLegacyForm="TRUE" did not add the default form webpart, SharePoint threw an UnsafeControlException. It looks like the DataFormWebpart on my NewVisitor.aspx could not be used "standalone" this way. The final solution was following: Open ...


1

I was able to use a custom form in place of the default one, without duplicated fields by applying the attribute UseLegacyForm="TRUE" on my custom form registration. In your case that should become: <Forms> <Form UseLegacyForm="TRUE" Type="DisplayForm" Url="DisplayVisitor.aspx" ...


0

Here is one script which I use often $url = "Enter URL" $listname = Read-Host "Enter List Name" $web = get-spweb $url $list = $web.lists[$listname] #delete existing forms $files = $list.rootfolder.files $form1 = $list.RootFolder.files | ?{$_.url -match "dispform.aspx"} $form2 = $list.RootFolder.files | ?{$_.url -match "editform.aspx"} $form3 = ...


0

You can add content editor to page and refer a javascript file which will comtain code for reading the query string To add content edit to to List//NewForm.aspx?toolpaneview=2 to edit the page and add webpart.


1

From InfoPath Designer Select File menu tab Select SharePoint List template Select Design Form button Enter Site URL Select existing List Select Content Type The new InfoPath Form is now associated with a specific Content Type. https://kerdirks.wordpress.com/2012/10/03/associate-custom-infopath-form-with-list-content-type/


0

If you have enough permissions you should be able to edit the page and add a Content Editor and add the html for an image tag. You could also use SharePoint Designer and edit the New Form for that list. You can add a table around the existing code and then in the next table data (td) you can add the image tag. e.g: <table> <tr> ...



Top 50 recent answers are included