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

Question

Question

Why don't the input boxes for side-by-side fields display next to their field labels when the form is read-only?

asked on April 1, 2014 Show version history

Dear all

when i try to save Forms to Laserfiche the complete forms Alignment is change . Any idea how to solve this issue.

 

for more information attached Two Screenshots. LF Forms , save forms in PDF

 

Forms Version : Laserfiche Forms Version 9.1.0.1441

 

 

 

Thank you.

 

Best Regards

Mazahir

LF-Forms.jpg
Forms-Pdf.jpg
LF-Forms.jpg (161.3 KB)
Forms-Pdf.jpg (174.56 KB)
0 0

Answer

APPROVED ANSWER
replied on April 7, 2014

When you move fields side by side, you also need to consider the overall width of the field container ('e.g., #q1') and not just its contents (the label, input box container, and input box).

 

For each of your CSS rules where you're putting fields side by side, try specifying a width, too.

 

So, instead of:

 

#q12, #q13 {display: inline-block;}

Try:

#q12, #q13 {display: inline-block; width: 300px;}

Note that you can also specify a percentage width. You'll also want to ensure that the label width and input box container width do not combine to be wider than the field width. If they do, the input box will end up below the label.

0 0

Replies

replied on April 1, 2014 Show version history

Try adding the following line to the CSS section of the CSS and JavaScript page for your form:

div.cf-field {min-width:0px !important;}

When fields are converted to read-only, they're changed from inputs to spans and given a minimum width. This minimum width is causing the field to drop below the label.

0 0
replied on April 1, 2014

hi Eric

i add this line but still the same issue. FYI

 

Regards

Mazahir

0 0
replied on April 2, 2014

Could you share the CSS you're using to get your fields side-by-side?

0 0
replied on April 2, 2014

Dear Eric

please check the attached Css Script file.

 

Thank You.

CSS-Script.txt (2.35 KB)
0 0
replied on April 3, 2014

I'm having trouble reproducing the issue you're experiencing using your CSS. If you could attach the business process here, I can troubleshoot the issue further.

0 0
replied on April 4, 2014 Show version history

Dear Eric

as per the portal limitation i am not able to Attache XML file.please go to following link to download the File.

 

Thanks.

0 0
replied on April 7, 2014

Thanks eric as i am beginner for CSS will do as per your guide line and hope it will come up with good output. 

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

Sign in to reply to this post.