• Resolved Theo Pape

    (@theo38)


    Output and styles for Advanced Custom Fields: Extended fields, such as currencies, are broken by Advanced Forms. Please see the link below, as that user has the same issue.

    Outputs like this with the spans displayed: <span class=”iti__flag iti__ae”></span>?.? AED

    Is there a way to disable the AF Form functions that are used to prepare a specific field, or another method to prevent the conflict from occurring?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Theo Pape

    (@theo38)

    This will fix the issue:
    
        if( typeof(acf) !== 'undefined' ) {
            acf.addAction('af/form/setup', function (form) {
                $('.acf-field-acfe-currencies select').removeAttr("data-ajax").select2({
                    escapeMarkup: function (html) { return html; }
                });
            });
        }
    Plugin Author philkurth

    (@philkurth)

    Hi Theo,

    Sorry to keep you waiting so long on this one – it’s a silly time of year and I’m juggling a few too many things this year.

    Can you tell me more about that code snippet – is that code you are firing on page load to reinitialise the field or is it a proposed modification to current JS in the plugin?

    Is this something I could reproduce with the free version of ACFE? If so, can you give me some steps to reproduce so I can dig into this one?

    Cheers,
    Phil

    Thread Starter Theo Pape

    (@theo38)

    Hi Phil,

    No worries, I know what it’s like.

    Yep, just thought I would provide what worked for us, in case others have the same issue – not sure if you really need to change that, as the form load hook is available…

    I only had an issue with the currencies field, so far, which is part of pro. Perhaps the plugin author will give you a copy to test against?

    Best wishes,
    Theo

    • This reply was modified 1 year ago by Theo Pape.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Advanced Custom Fields: Extended fields broken by Advanced Forms’ is closed to new replies.