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

Discussion

Discussion

Javascript to customize Laserfiche forms out of the box address field

posted on March 17, 2021

Hi All,

I thought others might have a similar need for this and decided to post my solution.  The out of box address field in form requires the state and country, my town clerk wanted them defaulted so a resident wouldn't have to fill them in. I really didn't want to make a separate field for each part, so I did some tinkering was able to get this below to work. It defaulted the state and country to what I wanted it to and then hid the country. I wanted the country to be filled in even if it was hidden.

 $('.State').parent().children().val("New York");
  $(".Country").parent().children().val("USA");
   $(".Country").parent().children().css('display', 'none');

1 0
You are not allowed to reply in this post.

Submit button after signature

Sign in to reply to this post.