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.


  • Profile Image

    Can we calculate/present a week number?

    Asked by Roel1985 on January 09, 2017 at 02:29 AM

    Hello,

    Is it possible to show a weeknumber. When i enter a date the form can calculate the week number?

     

    Thank you,

  • Profile Image
    JotForm Support

    Answered by Charlie on January 09, 2017 at 04:41 AM

    What week number are you referring to? Is it the week number on a month or the whole year?

    We do not have a direct function that presents a week number, but if you are familiar with its formula, I believe you can use the form calculation widget or the conditional logic to get it. Here are the guides that might help:

    https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget 

    https://www.jotform.com/help/268-How-to-Insert-Text-or-Mathematical-Calculation-into-a-Field-Using-Conditional-Logic 

     

    We'll wait for your response.

  • Profile Image

    Answered by Roel1985 on January 09, 2017 at 05:11 AM

    Hello,

     

    I refer to the weeknumber each year has 52 or 53 weeks. Like this year 2 jan 2017 - 8 jan 2017 is week 1 of this year.

  • Profile Image
    JotForm Support

    Answered by Mike on January 09, 2017 at 06:45 AM

    Unfortunately, we do not have an existing function or example to provide you with. In theory, it might be possible to use some set of calculation rules to calculate the week number depending on one of the standards, but we still cannot guarantee that.

    It might be easier to use some tested solution, for example it might be possible to use a form source code and custom javascript to calculate the week number. Please see the next article for more information on this topic.

    Calculate ISO 8601 week and year in javascript

    Thank you.