cancel
Showing results for 
Search instead for 
Did you mean: 
shrinivasnaik
Nintex Newbie

Current Time in Nintex Forms (real Time)

Hi,

I needed to extract the current time in Nintex Forms. I am aware of the CurrentTime nintex function, but the problem is that the currentTime is never updated and if the form is kept open for a few minutes the time is not updated. I believe Nintex loads the variables when the form is first loaded. I need to get the exact time (don't want to use the client time and would need to rely more on the server time).

Any guesses how I can achieve this.? I have tried a number of ways like calling a processupdate() function to refresh my calculated field to give the current time, but the time never refreshes and it always stays the same (i.e. the time when the form first loaded)

has anyone else faced this and how did they overcome? Any suggestions welcome.

Regards,

Shrini

Marian HatalaCaroline Jung

0 Kudos
Reply
19 Replies
Automation Master
Automation Master

Re: Current Time in Nintex Forms (real Time)

what about to use OOTB sharepoint field 'Created'?

or you can create your own datetime  list field and set it's default value to current date. if you do not supply it's value from forms it will be populated with date&time when item is created.

0 Kudos
Reply
shrinivasnaik
Nintex Newbie

Re: Current Time in Nintex Forms (real Time)

Hi Marian,

Date is not an issue, its the "time" that's an issue. When the form is first opened the time is set and after that the time is never updated. So if the user closes the form (using a button click) and if I read the "time" at that moment the time would be past(may be couple of minutes behind depending on how much time the form is kept open). I need the exact time the user had clicked the button.

Regards,

Shrini

0 Kudos
Reply
Automation Master
Automation Master

Re: Current Time in Nintex Forms (real Time)

do you mean to update datetime field with each item's edit/update?

then there in OOTB sharepoint list field 'Modified'

0 Kudos
Reply
shrinivasnaik
Nintex Newbie

Re: Current Time in Nintex Forms (real Time)

No ... not the update datetime field.. Cant use the SP OOB LastModified or Created Date

Scenario

User opens my form .. reviews stuff, puts in comments and Submits the form. (Submit is triggered through a button click).

I need to add the datetime stamp on the user comment fields and save it. 

For adding the dateTime stamp I am using Nintex inbuilt function CurrentDate and CurrentTime. This issue with using CurrentTime is that it is not realtime and if the user has taken few minutes to review before hitting submit the Time that I add to the comments is few minutes earlier. Is there any way to get the "Server" currentTime on the nintex Form ? (realtime)

Regards,

Shrini

0 Kudos
Reply
Automation Master
Automation Master

Re: Current Time in Nintex Forms (real Time)

are those comment fields/controls single line or multiline texts?

0 Kudos
Reply
shrinivasnaik
Nintex Newbie

Re: Current Time in Nintex Forms (real Time)

Multiline texts.. I have used AppendOnly Multi-line (if thats what you are referring to) before but this needs to be plain text field

0 Kudos
Reply
Automation Master
Automation Master

Re: Current Time in Nintex Forms (real Time)

append changes is available for both plain and rich text

... at least on SP2013 on-prem. I'm not sure what platform are you on.

0 Kudos
Reply
shrinivasnaik
Nintex Newbie

Re: Current Time in Nintex Forms (real Time)

Hi,

I am already using appendChanges for some other text boxes. The problem with AppendOnly is it uses versioning behind the scenes to save data and its difficult to extract the entire text out of the appendonly field. 

Try adding the appendonly text box to your default view and see the contents. It doesnt show up. 

0 Kudos
Reply
shrinivasnaik
Nintex Newbie

Re: Current Time in Nintex Forms (real Time)

Hey Marian,

Would you know the syntax of calling NIntex built-in functions like CurrentDate or CurrentTime etc from JS function (using NWF$) ?

Regards,

Shrini

0 Kudos
Reply