• Resolved authentico

    (@authentico)


    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

    (@keraweb)

    Hi @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.