Date Validity

HARSHA GOWDA R
Tera Contributor

Hi Friends,
Can anyone help me with this requirement,
I have two fields:
Balance: which stores wallet balance and type in integer
Balance Validity: which indicates till how long is your balance valid and type is date
I made balance field as mandatory and balance validity as read only bcz balance validity field can't be edited
Now if I have to set to validity 3 months later from the last Balance?I want in client script , can i get the code?

Thanks,
Harsha R

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @HARSHA GOWDA R 

Baselien you can get here

 

https://www.servicenow.com/community/developer-forum/how-to-set-due-date-using-client-script/m-p/168...

 

Steps

- Get the last recharge date

- and Add 3 month via Set method. ( above link help you)

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************