Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inexplicable field string_city_processor_string #123

Open
AndreyChursin opened this issue May 24, 2023 · 1 comment
Open

inexplicable field string_city_processor_string #123

AndreyChursin opened this issue May 24, 2023 · 1 comment

Comments

@AndreyChursin
Copy link

An inexplicable field with name="contact[string_city_processor_string]" appeared,
how to remove it (how can this be debugged)?

It appears at the end of any form template anyway, here is the full html of the field:

<div class="form-group">
    <label class="control-label" for="contact_string_city_processor_string">String city processor string</label> 
    <input type="text" id="contact_string_city_processor_string" name="contact[string_city_processor_string]" tabindex="-1" autocomplete="off" class="form-control">  
</div>

here is one of my form-config file:

notification:
    enabled: true
    debug: true
    debug_smtp: true
    debug_address: admin@some.com
    subject: "Message from site"
    subject_prefix: ""
    replyto_name: name # Email addresses and names can be either the
    replyto_email: email # name of a field below or valid text.
    to_name: Sale
    to_email: sale@some.com
    from_name: name
    from_email: email
feedback:
    success: <b>Thank you.</b><br>Your request has been received.
    error: There are errors in the form, please fix before trying to resubmit
submission:
    ajax: true
database:
    contenttype:
        name: contact_form # save all form submissions to the quotations contenttype
        field_map:
            # timestamp: ~ # do not save the timestamp
            # url: ~ # do not save the url
            # path: ~ # do not save the path
            # ip: ~ # do not save the ip
        ignore_missing: true # ignore fields in the form that aren't defined in the ContentType
templates:
    form: forms/contact/_contact.twig
fields:
    name:
        type: text
        options:
            required: true
            label: Name
            attr:
                placeholder: Name
            constraints: [NotBlank, { Length: { "min": 3, "max": 128 } }]
    company:
        type: text
        options:
            required: true
            label: Company
            attr:
                placeholder: Company
            constraints: [NotBlank, { Length: { "min": 3, "max": 128 } }]
    email:
        type: email
        options:
            required: true
            label: E-mail
            attr:
                placeholder: E-mail
            constraints: [NotBlank, { Length: { "min": 3, "max": 128 } }]
    phone:
        type: text
        options:
            required: false
            label: Phone
            attr:
                placeholder: Phone
            constraints: [NotBlank, { Length: { "min": 3, "max": 12 } }]
    comment:
        type: textarea
        options:
            required: false
            label: Message
            attr:
                placeholder: Message
    subscription:
        type: checkbox
        options:
            required: false
            label: Upgrade your skills by subscribing to our monthly newsletter
            label_html: true
    policy:
        type: checkbox
        options:
            required: true
            label: I've read the <a target='_blank' style='color:\#fb9024;' href='/privacy-policy/'>Privacy Policy</a> and I consent to the processing of my personal data.
            label_html: true
    submit:
        type: submit
        options:
            label: Get in touch
            attr:
                class: button _submit _w-full _size-l
@bobdenotter
Copy link
Member

bobdenotter commented May 24, 2023

Hi! It's not a bug, it's a feature. ;-)

Disable the honeypot, in Boltform's YAML, if yo don't want it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants