You are viewing limited content. For full access, please sign in.

Question

Question

Is it possible to impose a character limit on individual lines of the address field?

asked on April 3, 2019

I'm currently on 10.3 and there doesn't seem to be an option to set a character limit on individual parts of the address field in Laserfiche Forms. I need to limit the address line to 35 characters, and I was wondering if anyone how been in a similar situation and what they found was the best solution, or if this is something that is already possible for those on 10.4. Thanks!

0 0

Answer

SELECTED ANSWER
replied on April 3, 2019

Not sure about 10.4 having a built-in option, but you can do it easily with JS/JQuery

$(document).ready(function(){
  $('.cf-address .Address1').attr('maxlength',35);
});

If you right-click and inspect the page, each item in the address field group has a special class set that makes them pretty easy to target.

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.