MultiChoice Field wordwrap
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear Tom,
Should be possible, but can you provide us some screenshots, so we can better help? To see what you have right now and what you want to see instead.
Should be possible, but can you provide us some screenshots, so we can better help? To see what you have right now and what you want to see instead.
Cheers
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear Tom,
You can try the following JavaScript, just insert it inside JS editor on the form, replace field name with the InternalName of Standort/e field, and replace width with what you need, it should wrap the labels appropriately:
You can try the following JavaScript, just insert it inside JS editor on the form, replace field name with the InternalName of Standort/e field, and replace width with what you need, it should wrap the labels appropriately:
Code: Select all
fd.field('Choice').control()._el().find('td').attr('style', 'width: 150px; word-wrap: break-word;');
Cheers
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear Tom,
My bad, try this instead, should really work now:
Of course, you can adjust Width to your needs, just change it in both places.
My bad, try this instead, should really work now:
Code: Select all
fd.field('Choice').control()._el().find('td').attr('style', 'width: 100px; word-wrap: break-word;');
fd.field('Choice').control()._el().find('table').attr('style', 'width: 100px; table-layout: fixed;');
Cheers
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear Tom,
You do need to change Choice to the InternalName of your field. Click on the field in the designer, and check its internal name on the right:
You do need to change Choice to the InternalName of your field. Click on the field in the designer, and check its internal name on the right:
Cheers
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear Tom,
This is indeed very weird.
No effect at all? Or maybe we have something different in mind? Here is me running the script from console: It also works from the designer, I've checked that. But try the console as well, and show me a screenshot. Have to make sure there are no errors.
Perhaps, it's a browser difference or a different version of SharePoint. What browser are you using? And what is your version of SharePoint?
This is indeed very weird.
No effect at all? Or maybe we have something different in mind? Here is me running the script from console: It also works from the designer, I've checked that. But try the console as well, and show me a screenshot. Have to make sure there are no errors.
Perhaps, it's a browser difference or a different version of SharePoint. What browser are you using? And what is your version of SharePoint?
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests