Hi, Thanks for the video exactly I'm also looking for the same. It is not showing any errors for me, but script not working result not showing anything. How can i fix it
Dear can you help me out plz if (d2 == dd2.defaultValue || d1 == dd1.defaultValue){event.value = " " ;}; Syntax Error : Missing ) after condition 9: at line 10
I tried the following and it worked on drop-down calendar var dd = this.getField("departure date").value; var rd = this.getField("return date").value; var d1 = util.scand("mm/dd/yy", dd); var d2 = util.scand("mm/dd/yy", rd); var diff = (d2.valueOf() - d1.valueOf()) / 1000; event.value = Math.round((diff / 60 / 60) / 24); Just change the Departure date and return date.
@@raavan_6845 I tried the following and it worked on drop-down calendar var dd = this.getField("departure date").value; var rd = this.getField("return date").value; var d1 = util.scand("mm/dd/yy", dd); var d2 = util.scand("mm/dd/yy", rd); var diff = (d2.valueOf() - d1.valueOf()) / 1000; event.value = Math.round((diff / 60 / 60) / 24); Just change the Departure date and return date.
Dear Sir, pls help me to solve this problem below:- if(d2 != dd2.defaultValue && d1 != dd1.defaultValue) {event.value = Math.floor(diff/oneDay)+ " Day(s)" ;); showing (Syntax Error 14: at line 15
@Salim Poolat the last bracket will be } not ) if(d2 != dd2.defaultValue && d1 != dd1.defaultValue) {event.value = Math.floor(diff/oneDay)+ " Day(s)" ;}
Muchas gracias, fue de mucha utilidad.
I followed the script but nothing show in the field
thank you but please need code for color the weekends ,Friday & Saturday when i choose (the date from format)
Great video
Hi, Thanks for the video exactly I'm also looking for the same. It is not showing any errors for me, but script not working result not showing anything. How can i fix it
working pdf file is available on our patreon page
Sir same issue
Dear can you help me out plz
if (d2 == dd2.defaultValue || d1 == dd1.defaultValue){event.value = " " ;};
Syntax Error : Missing ) after condition 9: at line 10
I tried the code and it not showing me any error or the results but I'm using the drop-down calendar for the date value
Did u find any solution?
I tried the following and it worked on drop-down calendar
var dd = this.getField("departure date").value;
var rd = this.getField("return date").value;
var d1 = util.scand("mm/dd/yy", dd);
var d2 = util.scand("mm/dd/yy", rd);
var diff = (d2.valueOf() - d1.valueOf()) / 1000;
event.value = Math.round((diff / 60 / 60) / 24);
Just change the Departure date and return date.
@@raavan_6845
I tried the following and it worked on drop-down calendar
var dd = this.getField("departure date").value;
var rd = this.getField("return date").value;
var d1 = util.scand("mm/dd/yy", dd);
var d2 = util.scand("mm/dd/yy", rd);
var diff = (d2.valueOf() - d1.valueOf()) / 1000;
event.value = Math.round((diff / 60 / 60) / 24);
Just change the Departure date and return date.
Dear Sir, pls help me to solve this problem below:-
if(d2 != dd2.defaultValue && d1 != dd1.defaultValue) {event.value = Math.floor(diff/oneDay)+ " Day(s)" ;);
showing (Syntax Error 14: at line 15
@Salim Poolat the last bracket will be } not )
if(d2 != dd2.defaultValue && d1 != dd1.defaultValue) {event.value = Math.floor(diff/oneDay)+ " Day(s)" ;}
thank you very much Sir..