I am creating a new custom field for ACF which will be used in one layout option of a Flexible Content Field.
The Flexible Content Field exists on all pages, but the particular layout that uses the new custom field will be used very rarely and on very few pages.
I am using the input_admin_enqueue_scripts() function inside add_action('acf/include_field_types') when creating my new field as is the official example, but that loads the custom field’s scripts on all pages that have ACF fields, even pages that don’t use the new custom field.
1. A particular field type is added to a page/post in wp-admin?
2. The particular field type has already been added to a page/post in wp-admin?