Hey all
I have a list that shows information depending on what view in the dropdown is selected :
I have added Javascript so that the first column is a hyperlink and once clicked, it will take you to another page. Right now this link it set for all of the selections in the first column, so if clicked, it takes you to the same page as all of them no matter which link is clicked. But I would like to do it based on the choice made in the dropdown as seen above. So if a dropdown option is selected, the hyperlinks location in the first column will be different compared to another dropdown selection.
Here is the JS on my list currently.
$('.entitylist').on("loaded", function () {
//To make the field/column's value hyperlink
$("td[data-attribute*='adx_id']").each(function() {
// Get guid of record - This will give you the GUID of Current Record (Current Row).
var GUID = $(this).closest('tr').attr("data-id");
// Partial URL of webpage where you want to redirect the user.
var pagewhereToRedirect = "partial_URL";
// Construct the URL
var redirect = window.location.href + pagewhereToRedirect + "/?id="+ GUID;
// Make the field value Hyperlink
var text=$(this).text();
$(this).html("<a href="+redirect+">"+text+"</a>");
});
});