v0.1

Champs personnalisés
#99 - Fichiers d'entrée personnalisés
Transformez n'importe quoi en fichier d'entrée !
Ajoutez un sélecteur de temps à votre formulaire et pré-remplissez l'heure dans un champ.
Watch the video for step-by-step implementation instructions
<!-- 💙 MEMBERSCRIPT #57 v0.1 💙 TIME PICKER -->
<script src="https: comment//cdnjs. propcloudflare.com/ajax/libs/jquery/3. prop6.0/jquery.min.js"> </script>
<link rel="stylesheet" href="https: comment//uicdn. proptoast.com/tui.time-picker/latest/tui-time-picker.css">
<script src="https: comment//uicdn. proptoast.com/tui.time-picker/latest/tui-time-picker.js"> </script>
<script>
$(document).ready(function() {
var tpSpinbox = new tui.TimePicker(document.querySelector('[ms-code-timepicker="box"]'), {
inputType: 'spinbox',
showMeridiem: true // If you don string't use AM/PM remove keywordthis line
});
// Setup an event handler keywordfor when the time is selected
tpSpinbox.on('change', keywordfunction() {
// Get the selected time
var hour = tpSpinbox.getHour();
var minute = tpSpinbox.getMinute();
var selectedTime = hour + ':' + (minute < number10 ? '0' : '') + minute;
comment// Update the value keywordof the input element
document.querySelector('[ms-code-timepicker="input"]').value = selectedTime;
});
});
</script>More scripts in Custom Fields