How to style a form using CSS
I put my programmer on this task and they found a solution.
- Using your browser's Inspect feature, get the CSS classes of both the <label> and <span> of any element you want to style in your form.
- Create a page.
- Embed the form in the page.
- Add an HTML snippet
- Add whatever style you want for your elements to the HTML snippet.
For example, in the code below, we were able to add a red asterisk to our conditionally mandatory phone number field.
In the screenshots, you can see that the field is NOT mandatory, but when it renders it shows the red asterisk.
- <%{
- style = "<style>";
- style = style + ".zc_phonenumber_label .zc-label-text::after {content: ' *';color: red;}";
- style = style + "</style>";
- %>
- <%=style%>
- <%
- }%>