Giter Site home page Giter Site logo

wp-js-form-sample-plugin's Introduction

Hi there πŸ‘‹

wp-js-form-sample-plugin's People

Contributors

danieliser avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

w3guy seramade

wp-js-form-sample-plugin's Issues

Contextual search field to find & highlight settings

Similar to using PHP Storm, when you go into a tabbed settings interface there could be a search field, as you type fields & tabs are highlighted / hidden when they match/don't match the search result.

For instance a query for "user role" might show field "required_user_roles" etc

Because the search can search the original field array we can assign specific fields to check. Subsequently we can add a new key for search keywords.

'keywords' => array( 'user roles', 'user role', 'roles', 'users', 'user' ),

This would allow fine grained control over search to ensure users find the needed settings quickly.

Improved dependency rules

Allow for negative rules, JS based rules as well.

'dependencies' => array(
'custom' => values.field_id === 10 && values.multicheck_field.indexOf('option')
'custom' => "jQuery('#post_id').val() === 1"
)

Not sure how to logistically work that out yet.

Update JS form api to allow AJAX refresh of form fields

Add reload_form => true which will cause an AJAX request to get updated fields array to re render form and tabs.

Should send current values for testing.

Example might be that we don’t want to load any MC extra tab for form shortcode, but rather add additional fields to existing tabs only when mc is the chosen provider.

Also could allow loading mc api data on demand for each set of fields. I e only show interest groups for chosen list.

Allows further field dependency via AJAX & php filters.

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.