-
AuthorPosts
-
March 22, 2021 at 12:41 pm #1289612
Hallo!
wie kann ich ein Formularfeld unsichtbar machen?
Meine Idee wäre, 1 Formularfeld hinzuzufügen, welches aber LEER bleibt (aus Spamschutz-Gründen)
dieses Feld würde ich dann unsichtbar machen
Danke
BG ManuelMarch 24, 2021 at 4:06 pm #1290147Hi BG Manuel,
It’s possible via CSS.
If it’s a specific form, then we would need to see the page and the form in order to give some CSS code.
But if it’s for all contact forms then please make it the first input field, then in Enfold > General Styling > Quick CSS add this code:.avia_ajax_form h3 + .first_form { display: none; }
Best regards,
NikkoApril 19, 2021 at 12:32 pm #1295255Hi Nikko
thanks!!
for my better understanding:I use 3 forms (avia-builder contact forms). see links in private content.
shall I make a first form field (“element: text”) and then I add your mentioned code in quick CSS?
what means h3?
If a spambot will find this field, does enfold stop/block this spam-message?thank you !!!!
best regards
April 20, 2021 at 4:15 am #1295398Hi BG Manuel,
The code I gave simply means find the element with a class of first_form which is next to an h3 (heading), after checking on those three pages you have I don’t think it will work because it’s wrapped inside a fieldset. The code should be rewritten to (assuming that it’s the first field you want to hide):
.avia_ajax_form fieldset .first_form:first-child { display: none; }
But looking at your three forms, the first field/input are different from one another, which one do you want to hide? is it the checkbox?
Best regards,
NikkoApril 20, 2021 at 10:49 am #1295489Hi Nikko
it’s no problem for me, to start (all the 3 forms) with the same form-field (e.g. a simply text-form field) – which will be hidden…
my wish/intention is to make a honeypot (to avoid spam; because spamrobots usually want to fill in all the fields)can I put a code in the quick CSS?
which (review)-settings do I have set when choosing a form field “text?
will enfold send/transfer the form when the hidden field is field out?THANK YOU !!!
best regards
ManuelApril 20, 2021 at 1:28 pm #1295530Hi Manuel,
can I put a code in the quick CSS?
Yes, you can put the code in Quick CSS.which (review)-settings do I have set when choosing a form field “text?
I think it depends which field you want to use or more convenient for you.will enfold send/transfer the form when the hidden field is field out?
Yes, the hidden field will be sent however you can exclude with the avf_form_message hook.
Please refer to Ismael’s post on this thread: https://kriesi.at/support/topic/contact-form-email-disable-cookie-answer/Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.