I am trying to create an everything checkbox that checks all boxes in the form, using jQuery. However I am not able to modify the form fields whatsoever. here is my code, I have tried using onFormReady and waiting for the page to load, but nothing works.
if(jQuery(‘body’).hasClass(‘page-id-11656’)){
jQuery(window).on(‘load’, function() {
jQuery(‘#firstname-699e31bd-37b4-4a14-a5de-2fca0703842a’).val(‘Brian’).change();
});
onFormReady($form, ctx){
jQuery(‘#firstname-699e31bd-37b4-4a14-a5de-2fca0703842a’).val(‘Brian’).change();
}
}