What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
I need to base a calculation on the current month that the user is completing the form.Asked by jmnykamp on May 31, 2016 at 04:08 PM
I have a form that has different fees based on the month that the user is filling out the form. The year and day don't matter.
I have a field on the form that inserts the current date. How do I pull the current month out of that field so I can base a conditional field on the current month?
To do that you should do the following:
1. Add form calculation widget to your form
2. Place dateString function and set the date field into it
* To get dateString function, click on the button with 3 dots and then look for the same at the bottom. Clicking on it adds it into the 'editor' part then just click on the button for inserting fields to insert the date.
** This will now show month in the format that we can use on our forms to find the actual month.
3. click on Finish
4. Open conditions and set the update value to check if the form calculation contains Jan, Feb,Mar, etc and based on that add the price
That is it :)
You can see a quick demo of the same here: https://form.jotform.com/61516286137962 and you can clone the same to your own account to inspect it by following the steps here: How to Clone an Existing Form from a URL