Last active
June 10, 2016 18:15
-
-
Save jrstaatsiii/7f8989fa7a378003a0b55c740e4f12da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) { | |
if ( formId == 2 && fieldId == 5 ) { | |
optionsObj.dateFormat = 'mm-dd-yy'; | |
} | |
return optionsObj; | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment