Change color from Required field

annette_s 28 Jul, 2023
Hello
How and where can I change the red star from required fields? I would like to have an other color that matched with the website🙂
Thanks for your help.
rbock 28 Jul, 2023
Answer
1 Likes
Hello

Try: Add custom css to form with:

.ui.form .required.field > .checkbox::after {color:blue;}
Max_admin 28 Jul, 2023
that should work!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
annette_s 29 Jul, 2023
Thanks for your answer. Where and how do I have to insert the custom css code in the form?
rbock 29 Jul, 2023
ChronoForms7 -> Forms -> "Form" -> Views -> Custom -> CSS

Place it at the beginning of the form page.
rbock 29 Jul, 2023
Please send me a link to the form...
annette_s 29 Jul, 2023
Here you are:
https://mas.weblight.ch/kontakt
rbock 29 Jul, 2023
1 Likes
Try:

.ui.form .required.field > .checkbox::after, .ui.form .required.field > label::after, .ui.form .required.fields.grouped > label::after, .ui.form .required.fields:not(.grouped) > .field > .checkbox::after, .ui.form .required.fields:not(.grouped) > .field > label::after, .ui.form label.required::after { color:blue); }
rbock 29 Jul, 2023
1 Likes
Sorry:

{ color:blue; } not { color:blue); }
annette_s 29 Jul, 2023
Now it works 👍🏻 Many, many thanks!
rbock 29 Jul, 2023
Nice...
You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger