Tag Info

New answers tagged

2

In your custom form use Client Side Rendering and render the desired people picker column with the default template, i.e. SPClientPeoplePickerCSRTemplate. This will automatically render your column as you desire. Source


0

There is a much easier way to implement a people picker in Javascript. You can use Rest Api to do this as well. <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> ...


1

Following is the way to achieve this requirement Create one document library with "ItemID" field Add one hyperlink field to your actual list to store PDF url Create one word document with placeholder 3.1. You need to enable "Developer Tools" in word. Follow this link to do so 3.2. Design your document exactly same as your display form and add "TextBox ...


0

What Robert mentioned is the correct answer. If you don't want to use cascading dropdowns, another choice would be to create lookup columns pointing to data in the same list. You can then add custom logic using jquery / javascript to hide or show the respective lookup columns.


0

Here is very good blog article, about the difference of PreSaveItem and PreSaveAction. Quote: The function "PreSaveItem" is simply checking if a function with name "PreSaveAction" exists or not and if it exists invoke it and return its returned value (true/false) or return "true" by default if no functions exists with this name. PreSaveItem call ...


2

I just want to add one thing, you should not override PreSaveItem - this is a SharePoint built in function. Instead, like mentioned above - override/create PreSaveAction. But: be sure to remember you may not be the only one doing so. So, the correct way to do it is this, which will call other overrides if existed before your code: __OriginalPreSaveAction ...


-1

Try these links... one and two


0

As I understand you want to make use of SQl data in a SharePoint Form without programming. You could possibly populate your external SQL data to any native SharePoint list and make use of default list lookups in your form. Looks mlike the best approach because it does nit require any programming and your users work with list data only. That makes things easy ...


0

Though I am not sure if Farm solutions can be used so I can provide you with a workaround with the help of workflows. Break permission of the list and give users Add permission. HR group can have any permission you like. On item creation on the list start a workflow which gives HR users the desired permission and remove everybody else permission. This way ...


0

Technically no. There is no way to save an item without having permission on the list. Not to worry, there are workarounds. Assign HR department to have contribute access while disabling access to all other users. You may enclose your code with SPSecurity.RunWithElevatedPrivileges method to open a new SPWeb context that will personify as your app pool / ...


2

Hey I recommend you to create a webpart with the form as you like and insert the details into your custom list where you don't need to expose your list to anybody. Let me know if you have any questions.



Top 50 recent answers are included