Rank: Member Groups: Member
Joined: 12/9/2010 Posts: 28
|
EO Web 11.0.66.2
I'm working with a treeview control adding and editing the content of a node and saving them back to the database. The underlying table has a length of 50 for the field being changed. When saving, I need to do side trims to prevent database errors. This results in the loss of user-entered data.
Is there a way to set Maxlength to the edit node so that it behaves more like a regular text field, blocking the user from entering excess characters? Perhaps adding the attribute to the node when it is set to be editable (jQuery .attr() or similar)?
Thank you
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Unfortunately no, currently there is no way to set the limit through our API. You probably want to trim the string before you pass it to your database and alert user when it is too long.
Thanks!
|