SO acf-input.js starting at Line 9700 is where the Conditional Logic is happening..
There is also where certain fields are allowed.
If we can simply hook into the js functions and add our custom field to the array I guessing this should work in custom fields.
About the radio/checkbox fields. I think there should be a setting that allow users to assign a image instead of a check or a dot.
red : Red : /images/red.png
yellow : Yellow : /images/yellow.png
Line(s) 9700, 9920 and other fieldtype lines … Add manually add it the custom field type there.
I am wondering if there a way to add the custom field type to the array on runtime??
I would think that this should be a main feature with the radio field.
And I am familiar with that post. But I want to use conditional logic.
Ha Ha….. after all these years!!
You finally implemented it!
Thanks for the input!
About the first question Tabs for Field groups…
I usually use a plugin called Tabify
However it would be kinda nice to include in ACF.
Move a field.
I didn’t know I can move in and out of repeatable, flexible fields 🙂
It would be very nice to be able to move it in and out of field groups.
Even Muting or disabling a field would be nice because sometimes I want to keep the field but disable it from being used.
Any thoughts on add sliders and on/off button to replace the true/false or sliders for numbers?
Thank you for all other responses!
Well would you be interest in simply creating a checkbox “Enable variable PHP output”?
IF box is checked and user goes to export PHP, it will print the variable version.
I can copy and paste, but I use the export feature alot and having to rework all field arrays into variable working ones, would take all day each time.
I am pretty sure the ACF community would support this idea. It’s for the advanced coder and will give all sort of creation power to any coder, thus broadening the flexibility of this already awesome product called ACF!
Please consider the potential of having this added, like, using the ACF Option add-on to globally control the elements.
I would think you would only use 2 variables:
Besides, I don’t think the PHP export wouldn’t confuse us.
The only difference would be each array group will terminate with ; instead of , .
With this we can do custom conditions using php!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.