Open danielbachhuber opened 9 years ago
I think that this can be covered along with #316, as I imagine a lot of the same use cases for each. Registering a js callback function with the shortcode ui that receives the new value and has access to the collection to modify it would be one way of accomodating this.
The system of JS actions introduced in #336 makes this possible. Do we want a syntactic sugar for this specific use case, so that an attribute in the shortcode UI registration array can generate the javascript event listener to show/hide fields conditionally? Or is letting authors register their own js callbacks sufficient? Either way, this will need some documentation.
Do we want a syntactic sugar for this specific use case, so that an attribute in the shortcode UI registration array can generate the javascript event listener to show/hide fields conditionally?
Not at this time. The Fieldmanager implementation is actually a bit buggy, so I don't see value in copying it 1:1.
Either way, this will need some documentation.
Pull request against readme.txt
?
A request from the forums:
Fieldmanager has some
display_if
flag we could emulate.