Hello there,
I am not sure if some of you have met this challenge before, I want to automatically check all the boxes in a lookup field that is watching another Lookup field.
Formidable has a javascript for this that works more than great outside of the repeater field, the issue is that both of my fields are in a repeater section and the javascript seems to not work.
Will be possible to have this result working in a repeater?
Here is the javascript
<script type="text/javascript">
jQuery(document).ready(function () {
var checkBoiv = jQuery( document.getElementById( 'frm_field_1437_container' ) );
checkBoiv.on( 'frmLookupOptionsLoaded', function() {
var checkboxes = document.getElementsByName('item_meta[1437][]');
for ( var i = 0, n = checkboxes.length; i < n; i++){
checkboxes[i].checked = true;
}
});
});
</script>
Any help is more than welcome
The problem you are experiencing has to do with Ajax and jQuery operations. I suggest you take a look at this article, it may help: https://formidable-masterminds.com/repeaters-and-complex-jquery-operations/
Please login or Register to submit your answer