Hello,
I am on forms version 11.0.2311.50553 and am trying to make a single line field clickable. The field looks up a URL and has a class of urlColumn. The table has the class of myTable. The field looks clickable, but I have to copy and paste the link as it is not clickable.
I've used the following CSS and JS.
.urlColumn input {
color: blue;
text-decoration: underline;
cursor: pointer;
}
}
$(document).ready( function() {
// attach delegated event handler to table
// using url column as triggering element
$('.myTable').on('click','.urlColumn input',function(){
// get url from field value
var url = $(this).val();
// add http if url is incomplete
if (!url.startsWith('https')) {
url = 'https://' + url;
}
// open in new tab
window.open(url,'_blank');
});
});