Comments (3)
I think that would work! I implemented your suggested changes with commit e30e128.
Thanks a lot!
from advanced-forms.
Hi,
I think there is a problem when you have a group that owns another group.
Example :
who has a acf dog (see 2 ACF)
Who has a acf owner (see 3 ACF)
If i do :
af_get_field("civilite")
=> Return false
We do not go through the group
from advanced-forms.
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; } } }
for the future it would not be judicious to use the indentifiants and not the names like key?
from advanced-forms.
Related Issues (20)
- "af/field/prefill_value" not working, when field within group HOT 1
- "Enter" should change page and not submit, if not on last page
- "0" ist empty, when field within group
- "Additional CSS Class(es)" not working
- Update plugin meta HOT 1
- Provide a way to enable navigation to all form pages when using multi page forms
- Fix incorrect casing when using 'self' keyword HOT 1
- Add option to enable filter mode when using the block
- Add support for tabs inside of multi stage forms HOT 1
- Add value format short-circuit filter
- PHP Notice when attempting to render an empty file upload field in success message
- Problems with file upload field since ACF 5.12.3 release
- Two PHP warnings during ajax request in wp-admin on latest free version, 1.9.3 HOT 1
- Add own capabilities to Advanced Forms HOT 1
- File Upload atatched to Email, instead of link
- Strings not possible to translate
- Block editor preview
- Upload file in form, restriction not apply HOT 2
- Returning `false` from `af/form/email/recipients` filter doesn't stop email sending HOT 7
- ACF not defined in wp-admin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advanced-forms.