Hi Shaun,
We can use jQuery code to hide the submit button if the paragraph field contains any URL. However, it might not work smoothly, so you may see the button while typing.
I recommend using the first option, but if you prefer, you can use the following code as well. It only performs front-end validation, not server-side validation.
jQuery(document).ready(function($) {
// Function to check the text and update button visibility
function updateButtonVisibility() {
var messageText = $('#input_1_74').val() || '';
if (messageText.toLowerCase().includes('http') || messageText.toLowerCase().includes('https')) {
$('#gform_submit_button_1').css('display', 'none');
} else {
$('#gform_submit_button_1').css('display', 'block');
}
}
$(document).on('change keyup paste', '#input_1_74', updateButtonVisibility);
if ($('#input_1_74').length) {
updateButtonVisibility();
}
});
Give it a try, and let me know how that goes!