Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
31 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

Sorry, with http://www.ViewMaster365.com/#How I have been an avid promotor of the undocumented HTML trick (worked since SP2010, maybe even SP2007) Like you I am amazed Microsoft actually disabled it, ...
Danny '365CSI' Engelman's user avatar
14 votes
Accepted

How to use SP.UI.ModalDialog on plain old HTML page

Here is a minimal HTML file that will make use of SP.UI.ModalDialog: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns=...
Daniel Stölzner's user avatar
8 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

The new way of displaying HTML based on data in list(item) was possible using using JSLink. However the 'new' way to do this is by using SPFx Extensions. It's currently in preview. You should use a ...
Koen van der Linden's user avatar
8 votes

target="_blank" not working in a tag SharePoint online

Make the data-interception="off", see the below example : <a href="https://mytenant.sharepoint.com/..." data-interception="off" target="_blank" rel="noopener noreferrer">My other page</a&...
SP 2022's user avatar
  • 4,074
7 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

You can put in a support ticket to request an extension of the feature until 9/10. While it's not a long-term solution, this will hopefully give Microsoft enough time to enable the admin setting that ...
JD7's user avatar
  • 71
7 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

The short answer on "How to get the same functionality back": Third party products. Client-side rendering via JS Link property of web parts. This only works for Classic mode. If you are using ...
Wesley Preston's user avatar
7 votes
Accepted

page reloaded when i click the button

Add type="button" to your <button> tag to stop the reload: <button class="accordion" type="button">
Robert Lindgren's user avatar
6 votes
Accepted

SP Online - SharePoint Hosted Add'in - type(extension) of pages

.html and .htm are absolutely identical. In terms of apps there is no difference if you are creating .aspx or .html. But you need to consider your requirements carefully. For example, if you ...
Sergei Sergeev's user avatar
6 votes

How to make multi line rich text field readonly

Bonanza... The code $($("[id^=Log][id$=inplacerte]")[0]).attr("contenteditable","false"); Did the trick. Thanks for the hint!
southskies's user avatar
6 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

What I did to get around this in SP Online, is to use JSLINK to render the HTML. This is a much more elegant solution, and easier to use than the calculated columns anyway. But I was caught ...
Charles's user avatar
  • 61
6 votes
Accepted

Connecting an html form to a sharepoint list

You can implement this by creating a Custom New Form and adding the HTML you have already created to this aspx page. This will be bound to the SharePoint List . Each SharePoint List by default has ...
Priyaranjan KS's user avatar
6 votes
Accepted

Can i rearrange my Key Filter for a wiki page to appears on the top of the page instead of being displayed on the left hand side of the screen

I did some tests myself and it should be pretty straight forward. You can use a local jQuery reference instead of a CDN. This hides the Key filter Div and then moves the Div containg the filter to ...
Christoffer's user avatar
  • 9,781
5 votes
Accepted

What is the proper way to escape an equals ( "=" ) in a custom form with xslt?

There is no issue with the equals sign, the issue is with the ampersand, that has to be escaped as &amp; https://stackoverflow.com/questions/1328538/how-do-i-escape-ampersands-in-xml There are 5 ...
Eric Alexander's user avatar
5 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

Also long time lurker! Here is a solution I came up with. $(document).ready(function() { var textholder = ""; $("td.ms-cellstyle.ms-vb2:contains('<a href=')").each(function() { ...
Connor Jaramillo's user avatar
5 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

An alternative fix for this is to create a new Hyperlink or Picture column, and populate it with the correct url for your image. You can then use a workflow to set the correct URL for your image, and ...
Gizmo3k's user avatar
  • 359
5 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

My workaround is to add a content editor webpart with JS included, this code: $(document).ready(function () { if ($('div[fieldtype="Calculated"]').length != 0) { $('div[fieldtype="...
Paulius M's user avatar
5 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

The best alternate solution would be using CSR (JS Link) which is easy to customize your columns as needed. This is a most elegant way to replace the HTML code in calculated columns. The below ...
Venkat Konjeti's user avatar
5 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

In response to @Danny '365CSI' Engelman : Thank you for your 'vanilla JS solution' - I have been able to get it working, but: A clear benefit of jQuery is that it works across browsers. Your code did ...
zenlord's user avatar
  • 151
5 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

Use JSLink Create a new column named "Test" as calculated column Insert the HTML ( e.g: <div style='text-align:left !important;'><a href='/Pages/Course.aspx?name="+ctx.CurrentItem.Title+"'&...
Alan John J's user avatar
5 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

There's a fairly simple solution, if you don't mind using a SharePoint Designer workflow. Edit the Calculated Column with the HTML and change it's "The data type returned from this formula is" back ...
Mike Smith - MCT's user avatar
5 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

Much time has passed and this can now be achieved using the Column Formatting option that has appeared in SharePoint online in the column settings. It uses JSON syntax, some great examples on GitHub - ...
Mark Orange's user avatar
5 votes

Connecting an html form to a sharepoint list

There's a great solution which allows you to build a HTML form for SharePoint lists if you're okay using JavaScript and jQuery. Original solution: http://www.markrackley.net/2013/08/29/easy-custom-...
Una Lahiff's user avatar
5 votes

SharePoint Online html pages

As a workaround try to rename yourhtmlpage.htm to yourhtmlpage.aspx then it will be displaying in the browser.
Youssef Moumen El idrissi's user avatar
4 votes

Own .html page stored in SharePoint 2013?

There are a number of ways to accomplish what you're describing: If your environment allows for it, a SharePoint hosted App would be a great solution that would incorporate all the look and ...
John-M's user avatar
  • 5,940
4 votes

Is there a way to host static html using Office 365 sharepoint?

Yes There Is. I had a situation where I had over a hundred html pages that will change at a pretty frequent interval, so renaming the extension every time would be a pain. What I did instead was ...
Daniel Gimenez's user avatar
4 votes

hide ribbon and suite bar based on user type in sharepoint 2013 site

For anyone interested I accomplished this using a simple css edit in the head of the page code below if anyone needs: <style type="text/css"> #contentBox {margin-left: 20px !important;} ...
M_kul's user avatar
  • 131
4 votes
Accepted

Visitor can't access a copied seattle.master page

To edit the master page and reflect your changes you should publish it as a major version as the following: Check out the HTML file, Right click -> Edit in advanced mode -> Edit your page -> Save -> ...
Mohamed El-Qassas MVP's user avatar
4 votes

SharePoint 2013 Show/Hide Form Fields

Yes you can show and hide theses fields on demand based on your choice field selected value via Jquery without using SharePoint Designer by doing the following : Open your new form via the browser. ...
Mohamed El-Qassas MVP's user avatar
4 votes

June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

Here is the official fix, at least for on-premise: # NOTE: =$False NOT ="$False" # In SharePoint 2016 Management Shell, run... $Web = Get-SPWebApplication http://weburl $Val=$Web....
Mark Gable's user avatar
4 votes

Why is it not working properly when I add JavaScript, HTML, and CSS code?

Just try with content editor web part by editing the HTML Source ` <html> <head> <style> div.accordion { background-color: #eee; color: #444; cursor: pointer; ...
Debugger's user avatar
  • 1,722

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