On Dexterity Type document, on a Textarea field, i'm using jQuery $(field).val() to assign its value from Mysql
This operation works fine.
But if the content assigned contains a newline /n or /r , the dexterity document cannot be saved and the error message "Constrain not satisfied" appears.
If instead of assigning its value from mysql via jquery i just simply copy/paste the same content (with /n and /r) on the UI , no error ocurs.
I suspect it's an issue with dexterity validation or more directly with mockup functionality.
I'm new at Plone related development .. I would appreciate any leads on where to look to solve this problem.
Thak you Dieter !
it is a text field, on chrome inspect one can see the textarea tag
line separators doesn't cause problems if they are inputted manually, but using jquery $(field).val(' text with line separators') does not met the validation requirements
I have looked at the Text field implementation in zope.schema._bootstrapfields.Text. A Constraint not satisfied error should occur only when the field has a constraint. By default, a Text field does not have an associated constraint.