Checkbox (Yes/No) column does not display as checkbox..

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
tharais
Posts: 11
Joined: Wed Mar 29, 2017

18 Jun 2019

Good morning..

Is there any way to show a checkbox column as an actual checkbox and not a YES or NO on the display form
which is how it displays on my forms..

What am I missing?

thanks..

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

19 Jun 2019

Hello, tharais!

Please try the following code, just paste it in the Javascript editor.

Code: Select all

function findElementByText(text) {
var jSpot = $("div.ms-formbody.fd_control:contains(" + text + ")")
.filter(function() { return $(this).children().length === 0;})

return jSpot;
}

findElementByText("Yes").replaceWith( "<input type='checkbox' disabled='disabled' checked='checked'/>" );
findElementByText("No").replaceWith( "<input type='checkbox' disabled='disabled'/>" );

tharais
Posts: 11
Joined: Wed Mar 29, 2017

20 Jun 2019

Excellent.. worked great.. thanks mnikitina

TJ

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests