How to display dates dynamically

varunkumar1
Tera Contributor

Hi,

I have a requirement explained as below.

I have 3 date fields say (Date A, Date B and Date C) on a form. Based on date selected on Date A, the dates should be set in Date B and Date C.

For Ex: If I select Date A as today(03/17/2017) , then Date B should be set with yesterday's date(03/16/2017) and Date C should be set with "day before yesterday's date" (03/15/2017).

Please help me how can we do this.

12 REPLIES 12

I think creating another client script is not a good practice. Because, as per your suggestion, no of clients increases if I want to set dates on multiple fields say 7 Clients for setting 7 dates fields.


So, is there any alternative way other than this. Is there any possibility to modify the script include for setting values in multiple date fields.



Please let me know.


You have good enough understanding of what needs to be done 😃 good job


Alikutty A
Tera Sage

Hi Varun,



For client side date validations, you can refer to Client Script Date/Time Functions



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response