Support » Plugin: Event Registration » Issue when long texts are entered in the company field

  • Resolved pierino84

    (@pierino84)


    Hello, I found an issue when an attendee is trying to register and he is entering a long text in the company text field.
    Nothing is added to the database as he confirms the registration with the “confirm” button, and then he gets a text like this:

    “Your information has been received.
    A confirmation email has been sent to: “

    in my smtp log there is a warning that an email was passed to wpmail, but no recipient path has been supplied.

    Is there an easy way to implement a limitation to the company text field, as a workaround to this issue?

    Thanks a lot.

    https://wordpress.org/plugins/event-registration/

Viewing 1 replies (of 1 total)
  • Update:
    I was able to lmit the size of the text fields in the registration form by editing line 16 of the file public/evr_public-form.php

    from

    <span class="fieldbox"><input type="text" id="<?php echo $field; ?>" name="<?php echo $field;?>" value=""/></span>

    to

    <span class="fieldbox"><input type="text" id="<?php echo $field; ?>" name="<?php echo $field;?>" value="" maxlength="43"/></span>

    anything more than 43 will block the submission of the data.
    If limited in this way, all the text fields will not accept anything more that 43 characters, but the data is passed to the db, and the confirmation email is successfully sent.
    I think this is due to the varchar(45) type attributed to the mysql entry in the evr_attendee table.

Viewing 1 replies (of 1 total)
  • The topic ‘Issue when long texts are entered in the company field’ is closed to new replies.