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

Question

Question

Is it possible to limit the Country field in the Address collection to three characters?

asked on April 7

I would like to use the Address collection of fields in a form, but limit the Country field to three characters.  How would I do that?

 

Thanks.

0 0

Answer

SELECTED ANSWER
replied on April 7 Show version history

You could use javascript:

$(document).ready(function() {
    $('li.3-char-country input.Country').attr('maxlength',3);
})

just put the CSS class 3-char-country on your Address in its Advanced tab so that the code knows which Address fields to target.

3 0
replied on April 7

Worked great, thanks!

 

0 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.