Skip to content

enhancement suggestion #20

@quasiperfect

Description

@quasiperfect

hi

great plugin and i see from the road map will be even better

i have no javascript background so i'm sorry if this is a stupid idea

would be great if a developer could somehow integrate this with a cms, etc without the need to write any specific javascript

i will try to make some sense

most applications have some kind of form generator / builder (visual or not) and use ajax to do some/all tasks related to forms

so the plugin could watch for the creation of any form elements based on a class/selector
and autobuild itself based on rules defined using data attributes

something like

$('.dependson').dependsOn({default options:here});
<input id="a" name="a"></input>
<input class="dependson" data-depends-on-parents ="json here" data-depends-on-qualifiers="json here" data-depends-on-options="json here" id="b" name="b"></input>

now sure how hard or feasible would be to add this (i have no javascript experience so don't know limitations and problems)

best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions