Calculation E&P Forms

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

Hi,

Regretfully, It could only be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

You can try other third party plugins like https://wordpress.org/plugins/date-calculator/

Thanks for understanding. Take care!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.