Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Forms & Blueprints

Form submit issue

Started by Angelo 8 years ago · 0 replies · 570 views
8 years ago

Hi,

I have created a form. When I click on submit, I have an error page, and the error description is:

RuntimeException
A user account already exists, please create an admin account manually.

I have configured the email plugin and try with Sendmail and SMTP Mail Engine.
The form is:

title: 'Richiedi Assistenza'
fontawesome: use_global
animate_css: use_global
wow_js: use_global
google_prettify: use_global
foundation_abide_js: use_global
foundation_accordion_js: use_global
foundation_accordionMenu_js: use_global
foundation_drilldown_js: use_global
foundation_dropdown_js: use_global
foundation_dropdownMenu_js: use_global
foundation_equalizer_js: use_global
foundation_interchange_js: use_global
foundation_magellan_js: use_global
foundation_offcanvas_js: use_global
foundation_orbit_js: use_global
foundation_responsiveMenu_js: use_global
foundation_responsiveToggle_js: use_global
foundation_reveal_js: use_global
foundation_slider_js: use_global
foundation_sticky_js: use_global
foundation_tabs_js: use_global
foundation_toggler_js: use_global
foundation_tooltip_js: use_global
foundation_util_box_js: use_global
foundation_util_keyboard_js: use_global
foundation_util_mediaQuery_js: use_global
foundation_util_motion_js: use_global
foundation_util_nest_js: use_global
foundation_util_timerAndImageLoader_js: use_global
foundation_util_touch_js: use_global
foundation_util_triggers_js: use_global
form:
name: contact
fields:

YAML
        name: nominativo
        label: Nominativo
        placeholder: 'Inserisci il tuo nominativo'
        autocomplete: 'on'
        type: text
        validate:
            required: false
    -
        name: modello
        label: Modello
        placeholder: 'Inserisci il modello'
        autocomplete: 'on'
        type: text
        validate:
            required: false
    -
        name: Indirizzo
        label: Indirizzo
        placeholder: 'Inserisci indirizzo'
        autocomplete: 'on'
        type: text
        validate:
            required: false
    -
        name: citta
        label: Città
        placeholder: 'Inserisci la città'
        autocomplete: 'on'
        type: text
        validate:
            required: false
    -
        name: telefono
        label: Telefono
        placeholder: 'Inserisci recapito telefonico'
        autocomplete: 'on'
        type: text
        validate:
            required: false
    -
        name: email
        label: Email
        placeholder: 'Indirizzo email'
        type: email
        validate:
            required: false
    -
        name: descrizione
        label: 'Descrizione del problema'
        placeholder: 'Inserisci descrizione del problema'
        type: textarea
        validate:
            required: false
buttons:
    -
        type: submit
        value: Invia
    -
        type: reset
        value: Pulisci
process:
    -
        -
            email:
                to:
                    - '{{ config.plugins.email.to }}'
                    - '{{ form.value.email }}'
                subject: '[Feedback] {{ form.value.nominativo|e }}'
                body: '{% include ''forms/data.html.twig'' %}'
    -
        save:
            fileprefix: contact-
            dateformat: Ymd-His-u
            extension: txt
            body: '{% include ''forms/data.txt.twig'' %}'
    -
        message: 'Grazie per averci contattato!'
    -
        display: thankyou

Thanks and regards.
Angelo

last edited 03/12/18 by Angelo

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Ton Haarmans, 5 years ago
13 1136 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 61 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 134 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 110 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 129 7 months ago