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

Question

Question

After Save to Repository some fields are blank that shouldn't be

asked on September 18, 2017

After some right align configuration CSS changes, suddenly I have everything aligning right, but after hitting Submit and the form goes into the repository, two of the dollar value fields are blank.

I have confirmed that the form process knows the values.  I did this by adding the field variables to one of the Save to Repository field configurations.  My next test showed (1) the two blank fields on the image, and (2) the two $5000 values in the metadata:

     

And this is what showed after I hit Submit and the "copy" shows up with the Thank You message:

What might be causing this?

0 0

Answer

SELECTED ANSWER
replied on September 18, 2017

Hi Connie,

I tried your CSS and could reproduce the same issue. It seems that padding left does not work properly on cf-field when file is saved to repository. It would add padding much larger than configured so the field is pushed to right side out of the view. I will report this as a bug, sorry for the inconvenience.

As a workaround and actually in your CSS, the padding left on cf-field is not needed because it is right aligned. If you remove the #q .cf-label {padding-left: 620px;}, the right align still works and fields could show up.

1 0
replied on September 20, 2017

Thanks, Rui!  I believe your comments about the padding have helped with the blank fields!

 

0 0

Replies

replied on September 18, 2017

Hi Connie,

It sounds like this might just be a display issue--you've confirmed that the values themselves are copied into the appropriate metadata fields when the form is saved to the repository, correct? Have you tried testing things out without the CSS that's right-aligning those fields? If so, do the values show up on the form when you preview it in the repository?

FWIW, I've definitely heard tales from other users of form layout issues when viewed after saving to the repository--from my experience, playing around with element alignment on a form is always a little dicey for the reasons you describe above, as well as the fact that manually applied formatting does not usually translate well into the mobile experience.

~Rob

0 0
replied on September 18, 2017

Rob, I have been struggling with getting right aligning on these fields and have tried every combination that anyone has suggested.  It seemed that some of the CSS would allow right aligning during filling out of the form without retaining that alignment upon hitting submit; and some CSS allowed the right aligning after hitting submit but not before.  I finally get a combination that allows both and now the repository image result has blank fields!  Very frustrating.

The following is what I have in there right now for CSS and Javascript:

(Field 110 is the Grant Received field) (Field 142 is the Collection field) (Field 143 is the Total Amount Spent field)

0 0
replied on September 18, 2017

Hi Connie,

Thanks for sharing your CSS/JS. Unfortunately I am not able to offer much more insight than, "it's probably due to CSS/formatting". I avoid overriding Forms CSS unless the entire project hinges on it, because attempting to overhaul Forms' layout defaults typically ends badly for me. 

On the plus side, it looks like you're very close to accomplishing your goal--if you are able to get it working the way you want, please share your solution!

~Rob

0 0
replied on September 18, 2017

Will do.  Thanks.

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

Sign in to reply to this post.