Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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 Manuel

    #1290147

    Hi 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,
    Nikko

    #1295255

    Hi 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

    #1295398

    Hi 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,
    Nikko

    #1295489

    Hi 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
    Manuel

    #1295530

    Hi 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.