Checking if a Date/Time field is empty in a client script

bvq1
Giga Contributor

Hi All, 

I have created a new field on the task_sla table called "Actual Breach Time". I am trying to create a client script that sets the actual breached time field when the stage field changes to breached. This is what I have so far: 

find_real_file.pngIt works when I remove " && g_form.getValue('u_actual_breach_time') == null". But I need to ensure that the Actual Breach Time (Date/Time) field is empty as well. 

Please advise. 

Best regards, 

BVQ

5 REPLIES 5

Dinesh Nikam
Mega Guru

Hello bvq,

Just remove " newValue=== ' '  " from if statement in client script and type "g_form.getValue('u_actual_breach_time')==' ') " in your condition statement.

 

For More Info Please refer Attachment...!

find_real_file.png