Skip to main content
Nintex Community Menu Bar

forms date/time control with 1 minute period

  • May 28, 2015 12:54 PM UTC
  • 6 replies
  • 18 views
  • Translate All

Forum|alt.badge.img+4

Hello all,

Is there a way to change the date/time control so that the minutes filed show all minutes not only from 5 to 5?

thank you,

adriana

6 replies

Forum|alt.badge.img+16
  • May 28, 2015 2:58 PM UTC

Adriana:

Como estas?

Currently, you only can set minutes from 5 to 5. Perhaps you could write some JavaScript so as to change it, but should be tested also on the edit view.

Translate

Forum|alt.badge.img+4

Hello Fernando,

I thought so too.. but i was hoping for some sort of settings.

Thanks

adriana

Translate

Forum|alt.badge.img+16
  • May 29, 2015 1:25 PM UTC

No problem, please set it as answered

Translate

Forum|alt.badge.img+6
  • Sep 27, 2018 4:43 PM UTC

I added a list template of "notable events" you can import. Then I attached a form where we added javascript to it and the 24 hour gets converted properly.

If you are curious, the JavaScript is located in settings>Custom JavaScript

function funcResolve()
{
var fullDate = new Date();
var realMonth = fullDate.getMonth() + 1;
var hours = ("0" + fullDate.getHours()).slice(-2);
var minutes = ("0" + fullDate.getMinutes()).slice(-2);
var currentDate =  realMonth + "/" + fullDate.getDate() + "/" + fullDate.getFullYear();
if (hours   < 10) { hours   = "0" + hours;   }
var cTime = hours + ":" + minutes;
// Set the date field
NWF$('#' + fldResDate).val(currentDate);
// Set the time (hours + minutes) fields
NWF$('#' + fldResTime).val(cTime);
NWF$('#' + chkComplete).click();
}

Translate

Forum|alt.badge.img+4

thank you so  much. i will for sure try this.

Translate

Forum|alt.badge.img+6
  • Sep 28, 2018 1:15 PM UTC

let me know if it works for you

Translate