If a horizontal rule on a FileBound form obstructs access to an input field, follow these steps to resolve the issue:
Solution: Applying Custom CSS Styling to Fix the Form
Follow these steps to resolve the issue by adding custom CSS:
- Open the forms designer.
- Select the HTML View option.
- Add the following code at the top of the form's HTML but after line 1:
The code is applicable to any form containing the input types listed below:
<style>
hr {
position: relative; /* Keeps it within the document flow */
z-index: 0; /* Base layer */
width: 100%; /* Full width */
border: none; /* Removes default border */
height: 2px; /* Adjust height as needed */
background-color: #ccc; /* Background color */
pointer-events: none; /* Prevents interaction issues */
}
input[type="radio"],
input[type="text"],
input[type="checkbox"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="color"],
input[type="file"],
select,
textarea {
position: relative; /* Ensures they are above the hr */
z-index: 1; /* Places them above the hr */
}
</style>
See video below demonstrating the solution.