Date Picket Not Working?

Anonymous
Not applicable

Date Picket Not Working?

I'm trying to use a date picker for a custom SFDC field that is picked up in Marketo as a datetime field, not just a date field, and it's not working. 

But the datepicker code explained here: http://community.marketo.com/MarketoResource?id=kA650000000GtpOCAS doesn't seemt to work even when I use a Marketo Date field.

Has anyone used this datepicker code recently? Can anyone confirm that it works?
Tags (1)
1 REPLY 1
Alok_Ramsisaria
Level 10

Re: Date Picket Not Working?

You can tweak the code lttle bit and the parameter for datetime field as well. Try using the code below in the Javascript for the HTML element. Let me know if this worked for you.

<link type="text/css" href="/js/public/css/redmond/jquery-ui-1.7.1.custom.css" rel="stylesheet" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" >
  google.load("jquery", "1");
  google.load("jqueryui", "1");
</script>
<script type="text/javascript">
  var $jQ = jQuery.noConflict();

  $jQ(document).ready(function() {
     $jQ(".mktFormDate, .mktFormDatetime").datepicker({showOn: 'both', 
         buttonImage: '/images/icons16/calendar_31.png', 
         changeMonth: true, 
         changeYear: true, 
         buttonImageOnly: true
     });
  });
  
</script>