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

Question

Question

Company Website Integration with LF Forms - CSS Format for Mobile View?

asked on May 15

Currently we utilize Laserfiche Forms in conjunction with our company website when users wish to submit documentation. There are several different form types, but overall the complaint that comes up is mobile users get a rather odd format when accessing via website on their phones. 

 

It was indicated that this is a CSS function, but I am not entirely sure how our IT product team can utilize a best practice to create a more functional UI for mobile users.

0 0

Answer

SELECTED ANSWER
replied on May 15

This is some CSS that I re-use on any of my forms that will be publicly available.  This is for the Layout Designer (not the Classic Desiger). 

/*facilitate rearranging of field rows on small screens*/
@media (max-width: 600px) {
  .line {
    flex-direction: column;
  }
  .pdc
  {
    width: auto;
  }
}

/*facilitate rearranging of form header on small screens*/
@media (max-width: 600px) {
  .form-header {
    flex-direction: column;
    align-items: center;
  }
  .form-info {
    text-align: center;
  }
  .form-logo
  {
    float: none;
    padding-left: 0px!important;
    padding-right: 0px!important;
    margin-left: 0px!important;
    margin-right: 0px!important;
    margin-bottom: 15px!important;
  }
  .form-title
  {
    text-align:center;
    width: 100%!important;
    padding-left: 0px!important;
    padding-right: 0px!important;
    margin-left: 0px!important;
    margin-right: 0px!important;
    margin-bottom: 0px!important;
    flex-wrap: wrap;
  }
}

This will take fields that are side-by-side when full screen and make them a vertical list when on a small screen.  It also rearranges the form header to that the title and logo are vertical instead of side-by-side.

Here's a screenshot of one of my forms with full-screen and a phone-sized screen:

 

1 0
replied on May 16

Amazing! I will pass this info along to our IT Website team, and hopefully they can use it to format for more user-friendly UI. 

1 0

Replies

replied on May 15

Are you able to post screenshots of what the form looks like on a mobile device to give us an idea of what they think is an "odd format"?

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

Sign in to reply to this post.