SPFieldNote Display Error
Closed this issue · 0 comments
This issue was imported from CodePlex
amsackett wrote 2016-06-20 at 11:11
I am using:
SPEasyForms v2015.01.02.
SharePoint 2013
The screenshots show the error, I create 2 tabs and in one of them I put 2 SPFieldNote fields. I expected that fields will be inside the tab, in the order that I set them to. What happens is that the fields are displayed in their original spot on the page,
outside of the tab.
Is this a genuine error or have I failed to configure something?
mcsheaj wrote 2016-06-22 at 09:49
This is actually a known issue. Notes fields that are configured as Rich Text have numerous problems when moved off the default form table. The problems are different depending on which version of SharePoint you're on, and also environmental factors such
as was the site migrated from a previous version of SharePoint. Plain Text and Enhanced Rich Text Notes fields work just fine, so the work around is to change the field to one of those types, or it won't be moved by SPEasyForms.
I took a look at the documentation and sadly it does not mention this, so that's something I need to updated, but it has been mentioned in numerous threads and issues on this site before. The Rich Text editor used by SharePoint goes back to 2007 and is several
thousand lines of generated/obfuscated code, so there's no fixing it on my end as far as I'm concerned. If you can't change the field to be Plain Text or Enhanced Rich Text, you can't use SPEasyForms on that list.
This is actually about to be even more true. Somebody reported loss of data in Rich Text fields if SPEasyForms is installed, even if the list is not configured to use SPEasyForms. To get around this, I've modified the code so SPEasyForms does nothing on any
form that contains a Rich Text field (i.e. not only does it not move the Rich Text field, it doesn't move any fields or apply conditional visibility or adapters). This will roll out in v 2015.-1.03 very soon. So again, if you can't change the field to be Plain
Text or Enhanced Rich Text, you can't use SPEasyForms on that list. I need to update the documentation to state that SPEasyForms does not work on lists that have Rich Text fields and the only work around is to change them to Enhanced Rich Text or Plain Text.