Giter Club home page Giter Club logo

dynamic-form-bundle's People

Contributors

aramonc avatar bpanatta avatar csanjuanc avatar damian-af avatar felipegirotti avatar fernandocarletti avatar hellpat avatar israelliniomx avatar juliomz avatar klaussilveira avatar rocko10 avatar tamara-dietz avatar tavofuentes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynamic-form-bundle's Issues

FormlyFieldFactory should not be a manager

The FormlyFieldFactory class is acting like a manager, and only returning new instances when one doesn't exist already. Instead, it should always be returning a new instance.

Documentation code example not working

After following the example code in the README this is not working on symfony 4 or 5.
I get an error "cannot call method createForm on null", this I've noticed it can be fixed by adding a constructor in the DynamicFormAware trait like this
public function __construct() { $this->dynamicFormFactory = new FormFactory(); }
but then I get an error that the key "new_user" is not found, so I don't know where the form yaml should be put.

Could you update the doc and/or the bundle please ?

isSubmitted and isValid not working

My form renders correctly and is a very simple configuration.
If i submit is neighter isSubmitted() nor isValid() do work.

dynamic_form:
    new_user:
        title:
            enabled: true
            type: text
        password:
            enabled: true
            type: password
        meta_keywords:
            enabled: true
            type: textarea
        meta_description:
            enabled: true
            type: textarea
        published:
            enabled: true
            type: checkbox
    /**
     * @Route("/", name="homepage")
     */
    public function indexAction(Request $request)
    {
        // Create the dynamic form
        /** @var \Symfony\Component\Form\Form $form */
        $form = $this->get('dynamic_form.factory')->createForm('new_user');

        $form->isSubmitted(); // never works. Not after submission.

        // replace this example code with whatever you need
        return $this->render('default/index.html.twig', array(
            'form' => $form->createView(),
        ));
    }
<form action="/" method="POST">
    {{ form_widget(form) }}
    <button type="submit" class="btn btn-primary">Speichern</button>
</form>

does this bundle support subform?

such as the following configuration, the units is a subform of the suite_form, does this bundle support this feature ?

          forms:
                suite_form:
                    form_options:
                        validation_groups: ['Default', 'api', 'my_group']
                    fields:
                        name:
                            description: "Name"
                            data_type: "text"
                            property_path: name
                        units:
                            data_type: collection
                            target_class: App\Entity\SuiteUnit
                            fields:
                                serviceTemplate:
                                    data_type: text
                                    target_class: App\Entity\ServiceTemplate
                                    description: "Service template"
                                useCase:
                                    data_type: text
                                    target_class: App\Entity\UseCase
                                    description: "Use case"

Choices field doesn't work

I have problems getting the choices-field to work.
It doesn't seem to work at all.

Do you have an example on how to configure it properly?

choice1:
    type: choice
        options:
              choices:
                   - One
                   - Two

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.