Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Add a custom HTML element into the form.
  2. Paste the following code below. Remember to change field_id to the Popup Select Box ID.
Code Block
<button type="button" onclick="clearAll()">Clear All</button>

...



<script>

...


function clearAll(){

...


	FormUtil.getField("field_id").parents(".form-cell").find(".selector_remove").each(function(i, obj) {

...


		$('.selector_remove')[0].click();

...


	});

...


}

...


</script>