Support

Home Forums Event Espresso Premium Increase maximum input character length

Increase maximum input character length

Posted: August 15, 2016 at 12:06 pm

Viewing 19 reply threads


webierweb

August 15, 2016 at 12:06 pm

Getting the following error in the newest version of EE4:

Input is too long. Maximum number of characters is 45.

How can we change to 255, etc?


Lorenzo Orlando Caum

  • Support Staff

August 15, 2016 at 12:48 pm

Hello,

That can be changed through the questions editor.

Go to WP-admin (WP dashboard) –> Event Espresso –> Registration Forms. Then look for your question or paginate to the next page and then click on it. Then increase the maximum allowed character size which looks like this:

https://cl.ly/1J1b0I2t2R07

Then save changes.

If this is a system question such as a first name, then that has a maximum value pre-set.


Lorenzo


webierweb

August 16, 2016 at 9:09 am

The field that we are looking to increase the character size is actually a combined field that we created via php. Even when I set the character count max to 255 in the backend like you detailed, I still get the 45 character max error.

How would I edit the master default to allow for 255 instead of 45? That might do it for us.


webierweb

August 16, 2016 at 9:23 am

This item is critical at this point because the company that is using EE for registration cannot register customers and this is their busy season. Please help.

System question! The maximum number of characters that can be used for this question is 45

I need to change this to 255 ASAP.

It can be found here

https://www.redzonegames.com/football-team-registration/

Select any date, dropdown select 16, go to Register Now

It is the first field in the Attendee Information section:
Attendee Information

Name (Note: Team name will populate automatically at end of your name)*

It actually lets the user type a name (which limits to 45) and then adds the Team Name from above to the end of the field when scrolling away from field.

We need 255.


webierweb

August 16, 2016 at 9:31 am

I believe that this is because we are combining fields and one of the fields is a system question (name).

Is there a number I can call to speak with you or can we bring this to Skype?
My Skype is joseph.capone

Need to change max length for system questions to 255.


webierweb

August 16, 2016 at 9:39 am

How can I send you the private login details to the backend of the site so you can look and help with fixing this. We need to change a system question to allow 255 instead of 45.


Seth Shoultes

  • Support Staff

August 16, 2016 at 9:44 am

Hi there,

Are you talking about the “Attendee Information” field in your form? You should be able to adjust the field size, just as Lorenzo pointed out earlier. Here’s a screenshot: http://www.screencast.com/t/ABmc2PqQ4Rr


webierweb

August 16, 2016 at 9:48 am

Try it please. Enter more than 45 characters in that field in Attendee Information.

You get the error???


webierweb

August 16, 2016 at 9:50 am

I see the screencast that you shared.

My screen looks like this:

http://awesomescreenshot.com/0f6639926e

Says 255…..


Seth Shoultes

  • Support Staff

August 16, 2016 at 10:10 am

Yes, I see it now. I’m following up with our developers about this. I’ll post an update shortly.


Josh

  • Support Staff

August 16, 2016 at 11:15 am

So it appears that you’ve re-purposed the first name field to become a combination of Name and team name. Is there a reason that you put things together this way instead of having separate fields for First Name, Last Name, and Team name? That’s how those fields are designed to be used.


webierweb

August 16, 2016 at 11:17 am

We did it that way because we have a team rep that is registering the 16-50 players.

The tickets get created and emailed and the players name is on it instead of printing the team rep name on all tickets.

That way the name John Smith has the team name that he is playing on to keep things organized.


Josh

  • Support Staff

August 16, 2016 at 11:24 am

Why can’t that be done using 3 separate fields (i.e. First Name, Last Name, Team name)?


Josh

  • Support Staff

August 16, 2016 at 11:48 am

Further to the above, you can capture the player’s name in a name field ( or two fields e.g. First Name and Last Name ). Then you can print the team name in the ticket by putting this short code in the ticket template:
[PRIMARY_REGISTRANT_ANSWER_*What is your Team Name (ex 3/4 Gr PBYFL Odessa Bucs)]


webierweb

August 16, 2016 at 11:49 am

My primary developer is away and we are now in the middle of prime sales season.

How can I get it to work without modifying the ticket type, etc? Leave as is but change default character length?


Josh

  • Support Staff

August 16, 2016 at 12:33 pm

You shouldn’t need to modify the ticket type. The ticket templates are designed to be end user editable.


webierweb

August 16, 2016 at 1:43 pm

Not sure what you mean? Please tell me how to change default code that limits to 45 to 255 so it effects all fields? Then we don’t need to redo all the other coding we’ve done.

Please.


Josh

  • Support Staff

August 16, 2016 at 2:04 pm

There should be no need to re-do any coding. Is there a reason you will not use the [PRIMARY_REGISTRANT_ANSWER_*] short code in your ticket?


webierweb

August 16, 2016 at 4:49 pm

But this still does not allow the name to exceed 45 characters???? Shifting topic to something that just is not relevant.

How do we change 45 for default to 255??


Tony

  • Support Staff

August 17, 2016 at 4:30 am

The intention is not to shift the topic onto something irrelevant but to find a solution that already exists within core rather than hacking up the first name field to be something else that it is not intended to be.

If the only reason you are using the first name field is to include the team name in the ticket then your basically hacking up that first name field when there is no need to.

If you had another question field on the form called ‘Team Name’ you can add that to the tickets using [PRIMARY_REGISTRANT_ANSWER_*Team Name] as Josh mentioned. To do that you would go to Event Espresso -> Messages -> Default Message Templates -> Ticket.
(If you have a custom ticket template it would be within that but I don’t know if you do)

On that section you add the above shortcode where ever you prefer for the Team name to be output – http://take.ms/7DTIFC

The tickets now all display the team name without changing the system question fields.

Note: The [PRIMARY_REGISTRANT_ANSWER_*] shortcode uses the format:

[PRIMARY_REGISTRANT_ANSWER_*{question_text}]

So for your registration form on the event you links to the shortcode would actually be:

[PRIMARY_REGISTRANT_ANSWER_*What is your Team Name (ex 3/4 Gr PBYFL Odessa Bucs)]

We are very flexible with our support however adding core EE changes to support your custom coding is not something we will usually provide on the forums. We can discuss this with the developers (and have been already) with a view to possibly include a change in a future version of EE if viable, however instantly changing core to suit your custom code prevents us providing support and so is not something we take lightly.

Viewing 19 reply threads

The support post ‘Increase maximum input character length’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso