...
- Add a custom HTML element into the form.
- Paste the following code below. Remember to change field_id to the Popup Select Box Element 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> |
...