Jump to content

reassurance v5.0.0 Increase desription character limit


Recommended Posts

Hi - am wondering how to increase character limit in v5.0.0 od Customer Reassurance block (blockreassurance). It is only 100 characters for description an I need more.

Found this in /dev/back/index.js:

 // Tab Content : Edit : MaxLength
  $(document).on('keyup keydown', '.show-rea-block.active .content_by_lang input[type="text"], .show-rea-block.active .content_by_lang textarea', function () {
    var maxLength = 100;
    var val = $(this).val();
    var valLength = val.length;
    if (val.length > maxLength) {
      $(this).val(val.substring(0, maxLength - 1));
      valLength = $(this).val().length;
    }
    if ($(this).is('input:text')) {
      $('.limit_text:visible').text(valLength);
    } else {
      $('.limit_description:visible').text(valLength);
    }
  });

 

Tried changing var MaxLength value but no difference. On entering more than 100 characters in text box, it gets truncated.

Anyone got an answer as to how to allow more text?

Thanks,

Baz
 

Link to comment
Share on other sites

  • 2 months later...

I also tried to do so. I did the change here, with the MaxLength variable, but no visible changes in the BO.

I've pasted my full text in the ps_psreassurance_lang table, it completely appears on the front office.

I don't know if it's gonna last but it did the trick for now!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...