Title: Clearing a &#8220;List View field&#8221; value using JavaScript?
Last modified: July 10, 2023

---

# Clearing a “List View field” value using JavaScript?

 *  Resolved [authentico](https://wordpress.org/support/users/authentico/)
 * (@authentico)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/clearing-a-list-view-field-value-using-javascript/)
 * 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?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/clearing-a-list-view-field-value-using-javascript/#post-16883030)
 * Hi [@authentico](https://wordpress.org/support/users/authentico/)
 * I’m honestly not sure how to best approach this since React but please check 
   the `PodsDFV` object that resides within the `window` param.
 * In any case, you’ve targeted the HTML element within the jQuery object, I don’t
   think this will work in any case. Please remove `[0]` from your code.
 * Cheers, Jory

Viewing 1 replies (of 1 total)

The topic ‘Clearing a “List View field” value using JavaScript?’ is closed to new
replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/clearing-a-list-view-field-value-using-javascript/#post-16883030)
 * Status: resolved