Max Length of a Comment field

User 219465 Photo


Registered User
324 posts

I see that the max length of a Comment field is 254. I am trying to change the html of my form page, form.cfg.php file, and I found that I had it set to 250 Max Length. When I test it I seem to only be able to enter in 101 characters, including spaces. I originally had it set to the default of 100, but I need more characters.

So I changed this line (in the file labeled 'form.cfg.php'):

{"label":"Comments","fieldtype":"text","maxlength":"250"}},
User 271657 Photo


Ambassador
3,816 posts

I don't get it... In FB I see 10,000 as the default.
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 219465 Photo


Registered User
324 posts

Hmm, interesting. Like I said when I test it live, i only get 101 characters including spaces. I just checked my FB version and I have 2.4, I see the latest is 2.5. Could that be it?
User 271657 Photo


Ambassador
3,816 posts

Always good to keep up with the latest versions... got to go see which one I've got :D
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 219465 Photo


Registered User
324 posts

Updated to 2.5 and when I change the Max Length it still says 254 is it. I must be in the wrong universe :>(
User 103173 Photo


VP of Software Development
0 posts

The default Max Length for a Text Area is 10000 characters. You are using a Text Field which is different which does have 254 max length.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 219465 Photo


Registered User
324 posts

Ok, that makes sense. I see how it works using FB locally, apparently I get lost going into the file manager and trying to edit the file to change the value. I must be in the wrong file, and can't seem to find the correct one.
I changed the value from 100 to 250 in the file, but once I refresh and check it using the Inspect Element feature, it still shows 100.

Here is a link to the page. http://dtscarpentry.com/Contact.html I assume, and probably incorrect, that I should be editing the file labeled form.cfg.php
Here is the line I edited: {"label":"Comments","fieldtype":"text","maxlength":"250"}},
User 219465 Photo


Registered User
324 posts

Got it, just needed more time I guess. I edited the field labeled 'item9' in the Estimate Form.html. Sorry to bug you guys and thanks for the help.
User 219465 Photo


Registered User
324 posts

Note to self, or others that may be watching, I also changed the validation Validation_data.js file, 'item9' to 250 max.
User 187934 Photo


Senior Advisor
20,270 posts

Remember that the form may trip up if posting to mysql.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.