Code Monkey home page Code Monkey logo

Comments (3)

fabianlindfors avatar fabianlindfors commented on May 21, 2024

I think that would work! I implemented your suggested changes with commit e30e128.

Thanks a lot!

from advanced-forms.

cedricDevWP avatar cedricDevWP commented on May 21, 2024

Hi,

I think there is a problem when you have a group that owns another group.

Example :

1 ACF :
image

who has a acf dog (see 2 ACF)

2 ACF :
image

Who has a acf owner (see 3 ACF)

3 ACF :
image

If i do :

af_get_field("civilite") => Return false

When i see the data :
image

We do not go through the group

from advanced-forms.

cedricDevWP avatar cedricDevWP commented on May 21, 2024

to correct I add:

if ( $sub_field_name == $field_key_or_name ) { return $sub_field_value; }elseif( $sub_field_name == 'groupe'){ foreach ($sub_field_value as $sub_field_name_2 => $sub_field_value_2) { if ( $sub_field_name_2 == $field_key_or_name ) { return $sub_field_value_2; } } }

image

for the future it would not be judicious to use the indentifiants and not the names like key?

from advanced-forms.

Related Issues (20)

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.