Use gcb in link

webcrea 22 Oct, 2020
Hi,

I try to add gcb [] in a link with ...&gcb={data:gcb}
but this is not that...?

Do you have any idea please?
Regards
Chris
webcrea 26 Oct, 2020
Thanks but not
I need to open in new window with tvout=view
Regards
Max_admin 26 Oct, 2020
the problem is opening in a new link or getting the gcb value ? where do you use this code ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
webcrea 26 Oct, 2020
getting the gcd but I solved this issue with js...
jQuery(document).ready(function($){
diplomas_btn = jQuery("#diplomas_btn");

diplomas_btn.on('click', function(){
check_list();
});
});

function check_list(){
var tbrows = new Array();
jQuery('input[name="gcb[]"]').each(function(){
if( this.checked ){
v = this.getAttribute("value");
tbrows.push(v);
}
});
listrows = tbrows.join(',');

console.log(listrows);
if(listrows.length){
console.log('ok');
strUrl = "https://your_url?event=your_event&tvout=view&gcb=" + listrows;
var win = window.open(strUrl, "Diplomas");
}
}
You need to login to be able to post a reply.