CF7 Add a read only attribute to an input field

It`s not completely clear to me how your fields are organized but adding the following piece of code to your if statements should help making the desired input “readonly”:

jQuery('input[name="internetSearch"]').prop('readonly', true);