Hot answers tagged

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 ...


5

You can use queryselector to reach the text inside the div: var textValue = document.querySelector("#allowances div").innerText;


4

What you could to is just create a OOTB custom list, change the Title field to "New Idea" or something relevant and then enable ratings for the list from List Settings > Rating Settings. Enable it to Yes and select Star ratings and voila! Users can now rate the item/idea on a scale of 1-5 stars. If you wanna take it further from there, you could set up a ...


4

Add the URL of the next form as the &Source=[url] parameter The Source parameter in the URL is where the browser is redirected to after a Form is saved. Open an EditForm and investigate the URL The URL has to be URL encoded (and it needs to be within the SharePoint domain) https://xxx.sharepoint.com/sites/VM/Lists/Tasks/NewForm.aspx ?Source= https%3A%...


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

If I am not wrong, you need to change the default New & Edit form of your specific list using CSOM. Following is using C# Get your list an Content Types. var specificList = oWebsite.Lists.GetByTitle("SpecificListName"); var specificListContentTypes = specificList.ContentTypes; specificListContentTypes holds all the content type those are being ...


3

For OOB solution, I'd create multiple New/Edit forms for the list (one for each department). Then ensure each department user uses the New/Edit form customized for them by, e.g., placing link to form in top navigation and using Audience targeting to only show link to department specific form link to users of that department.


2

No, if you create a Custom form, you are breaking the automatic associations where an updated question (or field in the case of standard lists) automatically shows up. You must maintain your custom form any time you make structural changes to your list or it isn't reflected.


2

I added the following snippet: <td class="ms-formbody"> <SharePoint:FormField runat="server" ID="field_name" controlMode="Edit" FieldName="Name" /> </td> I don't know why but the FieldName attribute should be the exact displayed name (and NOT the internal name) of the column we want to display.


2

You can make that column required by going to List Settings and clicking on to the column, and then just clicking option Yes under "Required that this columns contains information". If you are using sharepoint Forms, then I think you need to create again the new form if you are making changes on the list after creating the new form. That changes will get ...


2

As SharePoint does not support Column level permissions, there are some third party tools available for column level permissions: Column Level Security SharePoint Column/View Permission You have to create two separate groups for HR & IT and give appropriate access to columns of the list using above tools. Non-OOB solution: Create separate groups ...


2

You can achieve this using InfoPath forms. You can create data connection using Web service GetUserProfileByName and then query for department field. Using InfoPath and the Web service GetUserProfileByName Create sections and based on department you can hide sections.


2

In your comment on the original question, You've indicated that you have experience working with Mark Rackley's method of manipulating forms using custom HTML and jQuery. If that is the case, you can achieve what you want by basically using that method. What you would need to do is, in the $(document).ready handler, make a client side call to SharePoint (...


2

This was resolved after restarting the SharePoint server overnight.


2

Sounds like the default for your List Settings is to open Forms as a Modal Dialog instead of a separate page. Open your List settings -> Advanced settings:


2

You can simply restructure the HTML table. Assuming the default layout is as follows: __________________________ |Field1| | |______|___________________| |Field2| | |______|___________________| |Field3| | |______|___________________| And the corresponding code is: <tr> ...


2

No need to change the HTML You can target the TDs in TR (3rd row) with the CSS selector: .ms-formtable tr:nth-child(3) td { border-bottom:2px solid red; } The TR does not accept border styles


1

Just resolved my issue. I referred to this question's answer and added .attr('onclick', '') This clears the onclick attribute in the html. So my code now looks like this: $(document).ready(function(){ $("table#idAttachmentsTable a").attr('onclick', '').click(function (event) { event.preventDefault(); var url=$(this).attr(...


1

In 2013 its all done with CSR and much easier. For 2010 you are on the right track, but have to program around the issues you experience. You can prevent the flash by making the default Form display='none' and make it visible after your Translation processing.


1

You can use below <a> tag to work. Place below mentioned code to your Custom Edit Form & it will work. <a href="javascript: {ddwrt:GenFireServerEvent(concat('__cancel;__delete={ID=',@ID,'};__commit'))}"><img border="0" alt="Edit" src="/_layouts/images/delete.gif" /></a> Above Code is getting @ID from the URL as it defined the ...


1

Try the below steps Add ID field in Form <td> ID </td> <td id="txtID"><xsl:value-of select="@ID"/></td> Add Delete button to the Form <input type="button" onclick="javascript:CustomDelete()" value="Delete"></input> Add the below code to Javascript of Form function CustomDelete() { var context = SP....


1

The possibility of this to happen is may be your old solution still exist in your site collection.Try deactivating it and activate your new solution. Please let me know if this helped you or not or you are facing some other issue. Thanks


1

I recommend you start with this book, "Inside Microsoft SharePoint 2010". The first 4 chapters can be read online at MSDN this link: Book landing page: Inside Microsoft SharePoint 2010 There are versions of this book for 2007 and 2013 too.


1

I just happen to have a great blog post on this. It's not only people pickers that break, it's also rich text editors (and god knows what else). Many blog posts will tell you to revert back to IE8 mode, but you can actually override the ootb function that breaks with a fixed version. Anyway, for the sake of having the full answer (or my blog exploding) I'...


1

This is a known problem. With SP2010, IE 11 should be in IE8 compatibility. Check this link, and read the solution ;) People Picker/Edit Web Parts/More not working in IE11


1

First You can assign Read permission to the users whom you want to only view the items and not add modify or delete. IF you want the users to add items but not edit or delete any item then Create a Custom Permission Level by going into Site Settings-->Site permission--> Permission Levels--> Add a permission level. Here select the action item you want the ...


1

You could do it with other ways of adding JavaScript to the page but CSR sure is a more modern style SharePoint programming approach. You need JavaScript and JSOM or REST knowledge to: Attach a change event to the lookup (JS) handle the change (JS) Read data from list B (JSOM or REST) process data (JS) populate fields in form A (JS no need for jQuery ...


1

There are a few different ways I can think of to handle this, based on what I think you described. Created your fields - and then just create a custom list view that doesn't show those column. Your fields will be visible in the edit form. Use InfoPath - with InfoPath you can have fields tied to XML that never populate in the list (this if for InfoPath ...


1

That depends on how you build your ASPX page. If this is one off page - use SharePoint Designer. Create new pages as needed for the library, remove the default markup and replace with your own. You can search for how to do this and get a lot of examples. Once you have your page - you can manipulate the template directly (via XSL) or use the Client Side ...


1

Not sure how related this can be, but we have seen some SharePoint updates changing way internal fields are named and shown in final HTML output. Here is a case where 'Required Field' is appended to internal display name of mandatory field. http://code2care.org/2015/sharepoint-update-append-required-field-to-display-name-of-mandatory-columns/



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