Hello,
I made a form with two dates : a date of arrival and a date of departure. I managed to get the difference between the two dates with the shortcode [dateDifference-89_90] .
With this shortcode I have the number of days. I would also like the number of nights, basically [dateDifference-89_90] - 1 . The point is to get “8 days and 7 nights”, for example, automatically.
But I don’t know how and where to put it. I need something simple so that my clients can manage this kind of forms later.
Also, is it possible to add Javascript in a form? I tried in a rich text article but it didn’t work.
Thank you