Choice field (checkbox) in View Form

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Siseto
Posts: 5
Joined: Wed Jul 12, 2017

10 Nov 2017

Hi,

In the View form the choice fields (when set up as checkbox) are returned on one line instead of the default (each value on new row), can I change that?

Capture.PNG
Capture.PNG (6.1 KiB) Viewed 1663 times
Thanks

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

13 Nov 2017

Hello, Siseto!
Try out this code after replacing field name with the Internal field name of your field:

Code: Select all

var values = fd.field('Checkboxes').value().split(';');
var html = '';
for (var i = 0; i < values.length; i++){
    html += values[i] + '<br>';
}
fd.field('Checkboxes').control()._el().html(html);
Cheers

Siseto
Posts: 5
Joined: Wed Jul 12, 2017

13 Nov 2017

Thanks, that works great!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests