How to style the field container div

LikeStuff 01 May, 2025

Is there a way to style or add a class to the textarea div?  All the divs that wrap the fields have the same class, eg: "mainfield field" but I need to style the textarea differently.  I notice that it has a data-vtype="textarea" on the div, can that be used to style it and if so, how?

Thanks in advance!

Max_admin 01 May, 2025

Which Chronoforms version do you have ? I think you have v7 ?

You can style the all divs using the following code in a CSS view:

.mainfield{
//styles here
}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
LikeStuff 01 May, 2025

Yes I am using v7.

 My question is, if I want to style a DIV differently how do I do that because they all have the same class on the DIVs (mainfield field)).

Thanks!

Max_admin 01 May, 2025
Answer

You can use the Field Class behavior:

How to style the field container div image 1

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 01 May, 2025

Sorry, that's available in v8 only, I can not remember if there was as solution for this in v7

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
LikeStuff 01 May, 2025

You are correct, it's not in v7.  I guess I will download v8.  Thanks!

Max_admin 01 May, 2025

You can install it with v7 on the same website and build this form only in v8 if you like

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
LikeStuff 02 May, 2025

Thank you very much!!

In v7 there was an option to duplicate a field, is that no longer available in v8?

Thanks again!

Max_admin 05 May, 2025

No problem! :)

The copy feature is on the todo list, just not ready yet.

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.