Loading...
 
Skip to main content

Features / Usability


JQuery Date in Data Channel

I need to use a date selected in a tracker in a data channel. I found this code on the Data Channel documentation page, but it only shows examples for text and drop down fields.

Is there a way to convert this code to pull data from a date select box?

$("selectname='ins_6'").bind('change', function() {
valeur=$(this).find("option:selected").val(); // This is the syntax for drop-down fields
$("inputname='Country'").val(valeur);
});

I've been playing around with this for a few weeks now, but I still haven't gotten it to work.  I think it's more of JQuery question than a Tiki question, but I wanted to see if anyone has ever tried this in Tiki.

I think the issue is that the value from the datepicker is in a hidden field, and the bind is having trouble recognizing the change on the field.

Any idea how I can get the datepicker to put the value in a non-hidden field?  Or any other ideas how to get this to work?