Support

Account

Home Forums ACF PRO Reload the result of Relationship using other fields' value before submit Reply To: Reload the result of Relationship using other fields' value before submit

  • good catch. It appears that you should only enqueue the JS on the pages where you want it to run. I’ve updated this in the example.

    But as you can see, there’s quite a bit involved. I’ve done similar things with other fields in some projects I’ve worked on and I basically need to code every field individually. You might be able to do this with a post object field, but they are more difficult and I’ve never done one of those. This is because the post object field is a selec2 field and the value of the selected post is not as easy to get at or to update. When building things like this I tend to stick with the simpler fields.