Tag Info

New answers tagged

1

Use javascript by adding a Content Editor to the page or adding it to the markup itself. I did something similar, picked up ContactId from Query String. Picked up this code from here <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script type="text/javascript"> ...


1

You can also add a js file using content editor web part and add the below code in it: ExecuteOrDelayUntilScriptLoaded(init,'sp.js'); function init(){ // perform functionalities here }


0

Well, this was a little of simple jquery... I had to use $(window)load() instead of $(document).ready()


1

I needed a simple method to determine if there was at least on error in a form field on any of the tabs. Because ms-error is present in the DOM before an error has occurred (people picker), I had to find a different way. Also, because different fields render the error message in different ways, I had to account for all methods in my form. What I ended up ...


0

You can customize the edit form and configure the atribute "ControlMode" to the value "Display", see: <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Display" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>


0

After trying a million different things to get the display form to print correctly without truncating the table, I finally gave up and moved to js for a solution. I would still love a cleaner css-only fix if possible, but this works for me. As a bonus, this even works if the form is in a modal popup. I added a content editor webpart to the display form ...


0

Instead of using query string filters I would suggest to use out-of-the-box webpart connections. A short tutorial you will find in this video: Youtube In your case the connections should be something like this: Provider Field: Contract No (Contract Webpart) Consumer Field: Contract No (Contract Attachement Webpart) You just need to make sure that the ...


0

From above screenshot it seems to be display form of a list Contract. So this will have listitem ID in URL querystring. Now on this display form page. Go to edit page. Then add Querystring filter and Contract_Attachment library. Now connect a query string filter using ID from URL to the custome ID column(linked with ID from Contract list) in document ...


0

To resolve this issue, I used the follwoing XSL expression. It was working as expected. <xsl:value-of disable-output-escaping=”yes” select=”ddwrt:AutoNewLine(string(@History))” ddwrt:nbsp-preserve = “yes”/> Here: History is my Multiline Text column in SharePoint list with Plain Text format ddwrt:AutoNewLine is to apply Line Breaks ...


0

Yes you can have custom forms for content types. You need to set properties for the content type, and this can be done in various ways. Below is the PowerShell function which will do the job. I have not fully tested the code, but I think this can be helpful function SetCustomForms-InContentType() { param( ...



Top 50 recent answers are included