Git Product home page Git Product logo

acf-dynamic-ajax-select-example's Introduction

ACf Dynamic AJAX Field Examples

MANY OF THESE EXAMPLES CURRENTLY DO NOT WORK WITH ACF >= 5.7.0 AND NEED TO BE REWORKED FOR THIS VERION. THE ONES THAT HAVE BEEN REWORKED HAVE NOTES ABOUT IT. THERE WAS A SIGNIFICANT CHANGE IN ACFs JS API IN VERSION 5.7.0

These examples only works in ACF5

This repo contains several examples of using AJAX to dynamically load fields based on the values in other fields. See the individual example folders for more information.

There are also some other examples here that are more complicated than what can be found in my ACF Filters & Functions Repo becuase each of these examples requires code in several files.

The following is a brief explanation of each example

dynamic-fields-on-relationship: This example shows how to load additional fields from a post selected in a relationship field.

dynamic-repeater-on-category: This example is a bit more complicated than the ones below. It will load a repeater field located on a post with values from a repeater field of the chosen post category.

dynamic-select-example: updated JS to work with ACF >= 5.7 Load values into a select field based on a choice made in another select field

dynamic-text-based-on-user-select: Loads text fields based on the selection made for a user field

repeater-ajax-load-more: This is an example of how to create a "Load More" feature for a repeater field.

unique-repeater-checkbox: updated JS to work with ACF >= 5.7 This example shows how to create a true/false field in a repeater that will only allow the field to be checked in one row of the repeater. A multi-row radio field.

acf-dynamic-ajax-select-example's People

Contributors

hube2 avatar

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.