Need script to add days (taking from dropdown field)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2016 03:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2016 06:41 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2016 06:45 AM
Please use gs.now(); instead of gs.nowDateTime();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2016 06:57 AM
Sudharsan,
I tried. But still its not working.
Is there any other way to achieve this?
Malaisamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2016 07:23 AM
Could you please share the snip of code you have written.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2016 07:31 AM
Please find the below for your reference
Client Script Name : PaymentDueDate
script Include:
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