Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Font Awesome fonts in input fields

More
3 years 7 months ago #7329 by sjb1963
Font Awesome fonts in input fields was created by sjb1963
So, day 3 trying to simply add font-awesome fonts to the input field.

Seems pretty basic right? Easy? 

.fa .fa-user

Simple CSS modifications are absolutely KILLING this App.

Any ideas how I can do this?

 

More
3 years 7 months ago #7335 by Administrator AV
Replied by Administrator AV on topic Font Awesome fonts in input fields
From the users point of view, this might seem pretty basic, yes.
But adding icons to form elements is NOT at all EASY or standardized.

Each layout framework (like Bootstrap, UIkit...) provides it's own workaround which includes framework SPECIFIC javascript and additional html elements (technicly an input element cannot have a child element like an icon). So the icon is always a sibling (additional html element) and its position (seemingly inside the input) is always forced with CUSTOM css.

If you have an application that stresses on design (like a page builder), placing icons is a pretty basic requirement.
In a application that focuses on functionallity (like a form builder), it is a second level citizen.

You're right, that Visforms can improve on the design and usability side and I would be very happy to have the time to do it.
But actually this is a huge task and sadly Font Awesome is only one icon-font.

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
3 years 7 months ago - 3 years 7 months ago #7343 by sjb1963
Replied by sjb1963 on topic Font Awesome fonts in input fields
I wanted to follow up on this because I found something that may be of benefit to someone else:

First off, once I had selected Bootstrap 4, an option for "control group class" appeared that I had not seen before.

In that field, I put "fa fa-user"

I've given my form a specific class ".BasicContactForm"
In my custom CSS file, I add the following:
Code:
form.visform.BasicContactForm [class*='fa-']::before {position: absolute;line-height: 30px;margin-left: 10px;font-size: 20px;top:5px;color: rgba(0, 0, 0, 0.4);z-index: 999;} form.visform.BasicContactForm [class*='fa-'] .form-group input, form.visform.BasicContactForm [class*='fa-'] .form-group [class*='selection__rendered'], form.visform.BasicContactForm [class*='fa-'] .form-group textarea {font-family: 'Montserrat', sans-serif!important;font-weight:normal!important;padding-left: 40px;} form.visform.BasicContactForm [class*='-container'] span span[class*='-selection'] {height:38px!important;line-height: 38px;}

This may not work for everyone, but it just might get you in the ballpark.
Last edit: 3 years 7 months ago by sjb1963.

More
3 years 7 months ago #7347 by Administrator AV
Replied by Administrator AV on topic Font Awesome fonts in input fields
Thanks a lot!

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum