I have a form with the "Address" field; however, the labels associated with this field are unnecessary on my form and actually make the saved form harder to read, so I hid them using javascript. This works on form load; however, when the form is submitted, the labels still appear (as does the country, which I hid both the label and the field). How can I get these labels to remain hidden when the form is saved to the repository?
I am running Laserfiche Forms Professional Version 10.2.1.327.
I have attached the javascript used to hide these fields below. There is no other CSS targeting this field. I do have a field rule that only shows this field when another field on the form matches either one of two choices, so if any choice besides those two is selected, the entire field remains hidden.
$(document).ready (function () { $(".Country").parent().children().val("USA"); $(".Country").parent().children().css('display', 'none'); $(".Address1").siblings().css('display', 'none'); $(".Address2").siblings().css('display', 'none'); $(".City").siblings().css('display', 'none'); $(".State").siblings().css('display', 'none'); $(".Postal").siblings().css('display', 'none'); });
Any thoughts or ideas are appreciated!