Giter Club home page Giter Club logo

bolt-extension-formeditor's People

Contributors

gwendolenlynch avatar raistlfiren avatar rossriley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bolt-extension-formeditor's Issues

ContextErrorException in FormEditorController.php line 173: on create

If I want to create a boltforms I get this error.

I'm on:
bolt 3.3.1
boltforms 4.1
boltformseditor 4.0

Uncaught Exception: ContextErrorException .

ContextErrorException in FormEditorController.php line 173:
Notice: Undefined index: defaults

        }

        $cleanname = preg_replace('/[^a-zA-Z0-9_]/', '', $newname);

        $fulldata = $this->read();
        $fulldata[$cleanname] = $this->config['defaults'];

        if ($this->write($fulldata)) {
            $this->app['session']->getFlashBag()->set('success', Trans::__('Your new form has been created'));
        }
    }

UI Can't delete empty fields on first creation.

Chrome. :Version 62.0.3202.89 (Official Build) (64-bit)
Bolt 3.3.6

When a form is first created, after adding a few empty fields, clicking the delete/trash button does not remove the field. This causes an issue after when trying to save as the empty field can't be saved.

[BUG] Extension breaks sortable select values in backend.

What went wrong?
With the bolt-extension-formeditor installed I could not drag-drop the values inside the select in the backend of bolt.

After I uninstalled the bolt-extensions-formeditor I could drag and drop the values in the select field again.

reproduction

-Install bolt
-install boltforms
-install boltforms editor
-add field to your contenttype with a select like:

        tabselect:
            type: select
            values: tabs/title,id
            autocomplete: false
            multiple: true
            sortable: true
            keys: title

-Create a new page or other contenttype and fill the select with values. You will notice you can't drag and drop them anymore.

I got no errors in the console...

Bolt 3.3.6
Boltforms 4.1.12
Boltforms editor 4.0.2

Config-Parameters get lost

If you have two Forms (simpleform, servicecontact).

You wan't to use different templates for it, so you defined this in bolftform.yaml:

templates:
    form: /partials/short_contact_form.twig
    email: /partials/short_contact_email.twig
    subject: /partials/short_contact_email_subject.twig
    files: /partials/boltforms_file_browser.twig
recaptcha:
    enabled: false
    label: 'Spam-Schutz: Bitte geben Sie den reCaptcha Text ein.'
    public_key: ''
    private_key: ''
    error_message: 'Der reCaptcha-Text wurde nicht korrekt eingegeben. Bitte versuchen Sie es erneut.'
    theme: clean
csrf: true
uploads:
    enabled: false
    base_directory: /full/path/for/uploaded/files/
    filename_handling: suffix
    management_controller: false
debug:
    enabled: false
    address: [email protected]
contact:
    notification:
        enabled: true
        debug: false
        subject: 'Nachricht von der Webseite'
        from_name: pw-druckerservice.de
        from_email: [email protected]
        replyto_name: name
        replyto_email: email
        attach_files: false
        to_name: 'Me Myself'
        to_email: [email protected]
    feedback:
        success: 'Ihre Nachricht wurde erfolgreich gesendet.'
        error: 'Es wurden Fehler im Eingabeformular entdeckt. Bitte überprüfen Sie Ihre Eingaben.'
    fields:
        name:
            type: text
            options:
                required: true
                label: Name
                attr:
                    placeholder: 'Ihr Name…'
                constraints:
                    - NotBlank
                    -
                        Length:
                            min: 3
        email:
            type: email
            options:
                required: true
                label: Email
                attr:
                    placeholder: 'Ihre Emailadresse…'
                constraints:
                    - NotBlank
                    - Email
        message:
            type: textarea
            options:
                required: true
                label: 'Ihre Nachricht…'
                attr:
                    placeholder: 'Ihre Nachricht…'
                    class: myclass
        needreply:
            type: choice
            options:
                label: 'Wünschen Sie einen Rückruf?'
                choices:
                    - Ja
                    - Nein
                multiple: false
                attr:
                    placeholder: ''
                expanded: true
        phone_no:
            type: textarea
            options:
                label: 'Rückrufnummer und Zeitpunkt '
                attr:
                    placeholder: 'Bitte tragen Sie hier Ihre Telefonnummer und einen Zeitpunkt für den Rückruf ein.'
        submit:
            type: submit
            options:
                label: 'Anfrage senden'
                attr:
                    placeholder: ''
                    class: special

templates:
    form: /partials/service_contact_form.twig
    email: /partials/service_contact_email.twig
    subject: /partials/service_contact_email_subject.twig
    files: /partials/service_file_browser.twig

servicecontact:
   fields:

   .... and so on... here comes the form-fields....

If you now edit the "servicecontact" with Edit Forms, the templates:-Section in front of servicecontact will be gone.
Only the one at the very beginning of this file is untouched.

Only compatible with > PHP 5.4

Not exactly an issue, but it'd be good to add it in the description since the array short notation makes it crash. Thanks bro.

Can't add contentype choice options

I can't add a contentype as choice options. Also, when I manually add it
choices: 'contenttype::markten::title::slug'
It works, but when I change something with the editor my manually changes are overrided

Apart from that: Great extension:) I was rejoiced to see it:)

Set Required to False Instead of Unset

Ross,

I was just curious why you don't set required to false instead of setting a value for required - ad7536d

All fields default to being required instead of the opposite. I would of thought that fields would only be required if the user declares them as being so.

Thanks for your time,

Ratty

From Name and Email Not added Automatically

bolt 3.3.6 php7

  • Fresh Version of Bolt
  • First extension added was the form editor ( got a missing > json error when I did this)
  • deleted default "contact" form
  • created a new "Contact" form
  • from_name and from_sender were not added to the form and so the form would silently fail with a success method, I only saw the error with debug turned on.

Uncaught ReferenceError: Bolt is not defined

Hi @rossriley, I am seeing a javascript error even the form editor is working.

the error formeditor.js?8d8663535f:1 Uncaught ReferenceError: Bolt is not defined showing in every page (admin)

tested on:
Bolt Forms Editor v2.0
Bolt Forms v3.02
Bolt v3.0.8

[bug] Error when trying to edit a form

I have a form that I created in BoltForms manually, it has 3 simple fields: Name, Email, Message

After Installing Bolt Forms I can see it in there:


screen shot 2017-12-10 at 12 59 57 pm

However, if I try to edit it I get this error:


slack-imgs

New forms that I create within FormsEditor can be edited though


Bolt 3.4.3
BoltForms 4.1.14
FormEditor 4.0.2

ContextErrorException in FormEditorController.php line 251: on save and crea

If I want to save an form via the editor I get this error.

I'm on Bolt 3.3.1
Boltforms 4.1
Boltformseditor 4.0

ContextErrorException in FormEditorController.php line 251:
Notice: Undefined index: required

                  $fieldkey = $name;
                }

                $fulldata[$formname]['fields'][$fieldkey]['type'] = $values['type'];
                $fulldata[$formname]['fields'][$fieldkey]['options']['label'] = $values['label'];
                if ($values['required'] == true) {
                    $fulldata[$formname]['fields'][$fieldkey]['options']['required'] = true;
                } elseif ($values['type'] != 'submit') {
                    $fulldata[$formname]['fields'][$fieldkey]['options']['required'] = false;
                } else {
                    unset($fulldata[$formname]['fields'][$fieldkey]['options']['required']);

Delete button is broken in form editor

In formeditor.js, the following looks for the parent element, which is the wrapper surrounding the form field settings. Since commit #85d692f484f7a9554281a816b7faf11e6759b061, April 15, this .form-field-row class has changed and thus the delete button does nothing, because parent is an empty jQuery object.

var parent = trigger.closest('.form-field-row');

Should be:

var parent = trigger.closest('.field-group');

PR incoming.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.