Need script to add days (taking from dropdown field)

malaisamy1
Kilo Contributor

Hi Guys,

I Have one more requirement. Could you please help me on this,

i have one date field called invoice_date where i have one more field called day_s

where day_s has dropdown values like 10,15, 30 so on.

my result field = invoice_date + day_s

that is it has to add the days whatever there in the day_s field. and stored in my result field.

result field is a date field.

Is it possible? any idea?

Thanks in Advance,

Malaisamy Ji

14 REPLIES 14

Here you have used gs.nowDateTime(); function.



But i need to get the date value from invoice_date. How can i call this date value to script include.



Any idea?



Thanks,



Malaisamy


Please use gs.now(); instead of gs.nowDateTime();


Sudharsan,



I tried. But still its not working.



Is there any other way to achieve this?



Malaisamy


Could you please share the snip of code you have written.


Please find the below for your reference



Client Script Name : PaymentDueDate



find_real_file.png



script Include:



find_real_file.png



if you are going to correct this code please help me on gs.nowDateTime();



instead of this gs.nowDateTime() i want the field value (invoice_date) there. Not the current date and time.



Thanks


Malai