Hot answers tagged

9

Try editing the SharePoint list settings in the browser. Open the list, go to List Settings, click the field name and select "No" for "Allow multiple selections". Edit after clarification that this is not a list form: The described behavior of the control leads me to believe that the form has initially been created with InfoPath 2007 and the people picker ...


7

That is not the internal field name of the SharePoint field, it is how ASP.NET (ASPX pages) gives IDs to the fields when it renders them. You should never rely on those as they keep changing based on other controls on the page. In this case MS has probably pushed an update that has brought in one additional control to the page, causing incremented ID to all ...


6

If your form is opening in a dialog, you can do it using jQuery: $('.ms-dialog #s4-ribbonrow').css('display', 'none'); or just by embedding some CSS on the page: <style> .ms-dialog #s4-ribborow { display: none; } </style> Or as Danny Engelman pointed out in the comments, if you do not want to load jQuery you can do it with pure ...


5

At least two options are available when it comes to client side validation in SharePoint 2013: Client-Side Rendering (CSR) Validation Override Save handler using PreSaveAction function Assume the scenario where we need to add client side validation for Email column in the Contacts list. Client-Side Rendering (CSR) Validation in SharePoint 2013 CSR is ...


5

Resources Windows 7 OS, InfoPath Designer 2013, Character Map, Notepad Preparation In InfoPath Designer, we want to make sure we can see the panes for Fields and Rules on the left. To show the Fields task pane, click the Show Fields button at the very left of the DATA tab on the ribbon. To show the Rules task pane, click the Manage Rules button at the ...


5

You can simply fill in the Description field on the column's definition in List Settings. The Description is automatically displayed if it exists. M.


5

Since you have created site workflows and they don’t have a list item or document to start from, they must be started either: 1) manually - http://technet.microsoft.com/en-us/library/ee662540.aspx or 2) Using API - example - http://unclepaul84.blogspot.com/2009/12/starting-sharepoint-2010-site-workflows.html Let us know if you find a better way...


4

I'm not sure if I understood you correctly. But when I want to open form I use asp:HyperLink and in codebehind I set NavigateUrl like this: hyperLink.NavigateUrl = "javascript:SP.UI.ModalDialog.ShowPopupDialog('" + url + "')"; If you want to open form (edit, view, etc) use copyutil - it can generate the exact url address for you: ...


4

So it turns out that SharePoint Designer is the only way to accomplish this. You have to go into the page in Designer, edit the page, and select the Insert tab from the ribbon -> New Item Form -> select "CUSTOM LIST FORM..." (not one of the pre-populated lists or you will get the barebones default content type!) -> Choose the list for the form you want to ...


4

Since Content Approval status is stored in List Item (_ModerationStatus) I would recommend to leverage any client APIs (JSOM, REST or SOAP) for that purpose. How to retrieve content approval status using client APIs JSOM function getListItemModerationInfo(listId,itemId,success,error) { var ctx = SP.ClientContext.get_current(); var web = ...


4

You can't trigger the form validation through javascript, however you can do something else. In both the New form and the Edit form the Save button has onclick which triggers PreSaveItem() which is a function in FORMS.js that invokes a function called PreSaveAction which is a user defined function, meaning it is a function you define and decide what should ...


3

One way for your to achieve this would be: Create a new SharePoint Group (or you can use one existent already) Make sure the original People/Person field in itself (when defined in the underlying list) is only allowing selection from that specific Group. Put target User into the group at step 1. Refresh your form to get the latest updates from the ...


3

Here's a solution. It involves using jQuery and the SharePoint JSOM library. Open your view in SharePoint Designer advanced edit mode. I think you already customized the XSLT. Add this code where you want the checkboxes to appear: <input type="checkbox" id="{generate-id()}{$ID}cbxProp1"> <xsl:if test="$thisNode/@Prop1.value = 1"> ...


3

If I understand this right, the reason the fields are not updating is because they are set as default values, which are only assigned once. What you want is a data connection to the other list that can pull the values you want, and then when a user opens the form it will have the updated values in it. Check out this article to see how to do it. Here is an ...


3

You can add this script: <script type="text/javascript" language="javascript"> function PreSaveAction() { var elm = document.getElementById("idAttachmentsTable"); if (elm == null || elm.rows.length == 0) { document.getElementById("idAttachmentsRow").style.display='none'; alert("Please attach Documents"); return ...


3

It depends on what you want to do with the data, I'd say. In general, I would recommend the custom list approach, especially if the purpose of the form is to collect data and use it later. Recently, I built a custom 'poll' web part that did just this - I had a PollResponses list that stored the choice the user submitted through an AJAX request, and then I ...


3

I've found simple solution. Here is step-by-step guide: Download jquery.min.js and put it, for example, in Assets library. Open Document library (one where you want to have preview on editform) and on ribbon click Library - Form Web Parts - Defalut Edit Form On Edit Form page click Add a Web Part and insert Content editor Web Part. Click Edit Source and ...


3

Yes you can. At least in SharePoint 2013 on-prem First create a new custom form. Go to the list where you want the new form and edit the form in SharePoint Designer. Then create a new form (1), give it a name (2), select which kind of form (3), option to set it als default (4) and click ok (5). Then open the newly created form in advanced mode (right ...


3

I think there are two slightly dangerous things in your code, that could be the source of the problem: a) document.getElementsByTagName("!"); Document.getElementsByTagName() is meant for getting a collection of HTML tags, e.g. getElementsByTagName("table") will give you all tables As "!" is not a HTML tag to be used for standard page content, just for some ...


3

This is a notorious and well-known issue in SharePoint. Background Let me explain why it happens: SharePoint is a Microsoft product, as is Internet Explorer, and it's quite a customary thing when some features work in IE but don't work in other browsers. Other browsers always were and still are "partially supported" by SharePoint. This is what happens ...


3

The survey list can handle this out of the box. If that doesn't suit the need, then you can create a custom list with all your form fields and create a custom InfoPath form to show/hide content or use javascript/jQuery on the form pages to show/hide infomation. If you want it to be a document, then you can use a form library and create your own InfoPath ...


3

If it is SharePoint List form, you can simply make the fields as Required and SharePoint will handle it... But if its some other form, which I think it is... you can use JavaScript like this: <script type="text/javascript"> function onSubmitValidation() { if (TrimAll(document.getElementById("field1").value) == "") { alert('All fields are ...


3

Well, first of all, it is always a bad idea to look directly into the SQL tables that power SharePoint as it can stunt your growth, cause sterility, blindness and hair loss (well, that is the impression that MS gives about it anyway) However, this almost sounds like you are using either an underpowered SharePoint server or an underpowered SQL server so it ...


3

This is how SharePoint handles web parts and the possibility that there will be multiple versions of the same web part and therefore multiples of each element. This gets especially tricky because the ID prefix cannot be counted on to stay WPQ2. If you are looking to do things client side, then you will want to work with some other containers that can be ...


3

Robert... This time, dont use relative URLs, just add absolute URL (the entrie path of the page) eg. <input type="button" value="Add List Item" name="BtnSave" onlick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect{http://<server>/sites/<site name>/Pages/<page name>.aspx}')}" /> It should work, cheers


3

I think your basic idea is to get information from these documents and display them differently as reports or views. 1) One way you could achieve this is by Mapping the InfoPath form fields to a list column. These fields can be part of your Form library columns. Whenever you publish an InfoPath form to a form library, you would be prompted with the ...


3

In this situation, I would simply create a second field of type "Person or group", and disable multiple values for both of them. This is the most simple solution, however I realize that it is not very convenient, because in some scenarious user will have to do additional actions. What about the custom validation, where are several ways to achieve this. ...


3

In SharePoint Designer open the list and select your custom form. Click the set as default option as shown in the image. You will need to do this for each of the custom form types.


3

The following code is working. There were 2 errors which I have commented in the code. //use a button for example <input type="button" value="Launch Dialog" id="myDialog" onclick="openDiaForm();"/> //inside script tags under PlaceHolder Main function openDiaForm() { //Use SP.UI.$create_DialogOptions() instead of SP.UI.create_DialogOptions() ...


3

Open the IP form you created. Copy the form. Paste the form into a new word document.



Only top voted, non community-wiki answers of a minimum length are eligible