Home › Forums › General Issues › Stop oEmbed in Basic WYSIWYG › Reply To: Stop oEmbed in Basic WYSIWYG
You can do this to heck the URL value. There are few different ways for the user to enter a URL so they all need to be covered
acf.addAction('load_field/key={the key of your oembed field}', function(field) {
$(field.$el).on("change", "input[type=text]", function(e){
let val = $(this).val();
// pass val to your validation method
});
$(field.$el).on("click", "input[type=text]", function(e){
let val = $(this).val();
// pass val to your validation method
})
$(field.$el).on("keyup", "input[type=text]", function(e){
let val = $(this).val();
// pass val to your validation method
})
})
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.