You are viewing limited content. For full access, please sign in.

Question

Question

Due Date based on a variable showing incorrect Time

asked on September 20, 2017

Hi All,

 

I have a Form that is used to by staff to fill in job requests.

We have two fields that are filled by staff within the form that is:

1. Required by date: 

2. Required by Time:

 

The time can be changed as per user requirements and in my test, I set it to 11 AM.

Once the Form has been submitted, the Admin staff receive an email populating the correct Date and time based on variables set:

 

But, in the user task, it is always referencing the time as per below:

Even if I check the options under the variable:

It still is unable to show the correct time and the Field Variables do not show the time Field i have set on the form:

The user receives it in LF Forms as per below:

 -->

 

Question is, how can I show the Due time based on the user selection? Am I using the incorrect field for this? Should it not be split as I have set it? The only reason I split them was that I was unable to set the Time as I needed with the Date/Time Field, it only gives you an option for the start of the Form and not anything else? 

 

Please advise? 

Thank you, 

0 0

Answer

SELECTED ANSWER
replied on September 20, 2017 Show version history

Hi Ziad,

I noticed that you have set it to "0 Days after". Does it do the same if you change to the Days to hours?

edit: just tested and set the Date field to include time as well. Change the due date to 0 hours past the variable and see how it goes. It seems to be working for me.

 

If you need to set the default time within the datetime component - use this:

$(document).ready(function(){
  
  $('#DateTimeField2').val('17:00:00');
  
});

Just check and make sure the field id for your Time field matches 'DateTimeField2'.

Kind Regards,

Aaron

duedate on task.PNG
2 0
replied on September 21, 2017

Thank you Aaron,

 

Works Perfectly!

 

Regards

Ziad

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.