• Resolved muhammadzaid

    (@muhammadzaid)


    Hi, thank you for the amazing plugin. It sorted all the issues. Only 1 issue is remaining which is stoping my client to make the website live.

    On the contact form, I have added a textarea for Notes which is an optional field, with a character limit of 240. But the problem is it stops at 237 and will not allow me to write anything which is a strange behavior. I have no clue how to fix it.

    I have attached the screenshot link https://i.imgur.com/kCYtN4C.png

    If anyone from the support team and community member know how to fix it. I would be really thankful.

    Regards,
    Muhammad Zaid

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @muhammadzaid,

    I hope this message finds you well.

    I checked the issue on my end but couldn’t replicate it. I was able to input 240 characters without any problems. Here is a screenshot from my end: https://ibb.co/CWgK3Yq

    Can you please confirm if you have managed to fix the issue? If the issue persists, could you please provide the device and browser details so we can try replicating the issue on our end?

    Please also share an export of the form using Google Drive or Pastebin.com. I hope the following guide comes in handy: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    Kind Regards,
    Nebu John

    Thread Starter muhammadzaid

    (@muhammadzaid)

    Hello @wpmudevsupport14,

    Thank for the reply, I have managed to fix the issue by custom jQuery character limit. Problem is with the maxlength attribute. It count characters differently in every browser.

    That’s why I have written my character limit using jQuery. I am sharing the code if someone wants to benefit from it.

    // Making custom Character limit for Textarea
    var charLimit = 240;
    $('.forminator-textarea').after('<div class="forminator-description"><span class="wordcount">0</span>&nbsp;/ 240</div>');
    $('.forminator-textarea').keyup(function() {
    var characters = $(this).val().length;
    $(this).next('.forminator-description').find('.wordcount').text(characters);

    if (characters >= 240) {
    $(this).attr('maxlength', 240); // Prevent further input
    } else {
    $(this).removeAttr('maxlength'); // Allow input again if character count drops below 240
    }
    });

    Regard,
    Zaid.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @muhammadzaid

    Thanks for response and sharing the code!

    However, I’d still like to ask you for some additional information.

    I just tried to replicate the issue again with the standard (built-in) limit feature. I set it, for the ease of testing, to just 10 characters limit and checked in Firefox and Chrome (desktop, Win 10 Pro). characters were correctly counted for me.

    So:
    – what browsers did you notice those differences with?
    – or should we test e.g. longer text/bigger character limits?
    – or maybe it’s only happening if Field is set to have Rich Text Editor enabled?

    Basically, please describe a bit more how/when you noticed those differences in character count. We’d like to replicate it so our developers could then check it and consider some changes in future releases of the plugin to make it work correctly in all cases.

    Thank you in advance!

    Best regards,
    Adam

    Thread Starter muhammadzaid

    (@muhammadzaid)

    Right, to test things, add textarea in the form and provide a character limit 240. Now start writing “This is a test email. ” same in the attached screenshot. Counter stops at 230. I have counted the characters. With spaces it’s 239, but the counter is showing 230 which is UX standpoint creates confusion for the users.

    It a live site. I can’t remove my code. I hope this will help to reproduce the issue.

    Regards,
    Z.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @muhammadzaid

    Thank you for response and additional description.

    You are right, I was able to replicate that now. Previously I wasn’t able to because I simply tested too small limit. Apparently the issue is also affected by the “type” of characters used. For example, if there’s a lot of punctuation (like commas, points, question marks etc) it’s counted differently.

    It means there’s some kind of a bug related to these limits. Unfortunately, I don’t have any workaround for it but I have already reported it to our Forminator Team as a bug. Developers will look into it, investigate it closely and work on the fix to be included with one of future update.

    Thank you for reporting it!

    Best regards,
    Adam

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @muhammadzaid

    I would like to update you regards the current issue, we confirmed it is a bug in the plugin and happens when some “type” of characters are used, unfortunately, the fix requires updating the plugin code but we already reported it to our developers.

    We can’t give an estimated time yet for the fix but subscribing to our roadmap https://wpmudev.com/roadmap/ is a good way to be posted about upcoming versions, once they are released, it is going to be described at changelog found on https://www.ads-software.com/plugins/forminator/#developers

    Since the bug was acknowledged, reported and tasked to be fixed, we are marking this as resolved, but feel free to let us know if you have any additional questions.

    Best Regards
    Patrick Freitas

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @muhammadzaid

    Hope you’re doing well today!

    I have an update regarding the Bug you noticed, we have released a Fix for the bug in our latest Forminator plugin v1.36. Please feel free to update the plugin to the latest version and check if that resolves the issue.

    Please feel free to let us know in case you have any questions.

    Kind Regards,
    Saurabh

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.