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%>
- <%
- }%>
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.