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?
- The topic ‘Clearing a “List View field” value using JavaScript?’ is closed to new replies.