Clearing a “List View field” value using JavaScript?

[ad_1]

I have a custom pod with two fields, they’re both Relationship fields and List View (single select). It seems they’re using React to render the actual HTML and hidden input tags when value is changed…?

In my use case, I’m trying to do: when one field value is set, the other field value needs to be cleared.

I’m trying to do this with jQuery.

But I can’t figure out if these “List View” fields have any exposed interface…?

When I try something like jQuery('.pods-dfv-pick-full-select__clear-indicator')[0].click(), nothing happens. The field value isn’t cleared.

Also, is there some way to watch if the field value of “List View” has changed?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer