Affichage suivant différentes semaines de l'année

  • Profile Image
    jpvaysse5
    Demandé le 6 octobre 2025 à 15:58

    Bonjour,

    Dans mon formulaire, je souhaiterai afficher un widget et en cacher un autre suivant certaines semaines de l'année.

    Comment puis-je faire cela?

    Merci de votre aide

    Jean-Pierre

  • Profile Image
    Ray
    Répondu le 6 octobre 2025 à 17:27

    Hi Jp,

    Thanks for reaching out to Jotform Support.

    I'm happy to help you show one widget and hide another based on the weeks of the year. Since we don’t have a built-in "week number" operator, you can use the Date Picker field (set to the current date) and Show/Hide conditions using date-range logic. Here’s how you can set it up:

    1. Add a Date Picker widget to your form. In the Form Builder, open Add Form ElementDate Picker. In the Date Picker’s Options tab, set Default Date to Current and turn Hide Field to On so it’s invisible to your users.
    2. Create Show/Hide conditions for each week period. For each widget you want to show/hide, add a Show/Hide Field condition that uses a date-range test on your hidden Date Picker. For example, to show Widget A only during Week 1 of 2025 (Jan 1–Jan 7) and hide Widget B during that same week:
    3. Go to SettingsConditionsShow/Hide Field.
    4. Set up a condition like:
    5. If „Date Picker“ Is Between „2025-01-01“ and „2025-01-07“
    6. Do → Show „Widget A“
    7. Add another condition:
    8. If „Date Picker“ Is Between „2025-01-01“ and „2025-01-07“
    9. Do → Hide „Widget B“
    10. Repeat for each week or date range. For Week 2 (Jan 8–Jan 14), create conditions with those dates, and so on.

    Test your form by previewing the form on different dates to ensure the right widgets show and hide as expected.

    This gives you full control over which widgets appear during any given week—you simply map each week to its start/end dates in your conditions.

  • Profile Image
    jpvaysse5
    Répondu le 7 octobre 2025 à 05:19

    Bonjour,

    J'ai essayé votre méthode qui a l'air de fonctionner pour une semaine, je ferai des essais sur d'autres pour voir.

    Merci pour l'aide.

    Cordialement

    Jean-Pierre

  • Profile Image
    jpvaysse5
    Répondu le 7 octobre 2025 à 06:51

    Bonjour, je ne dois pas m'y prendre comme il faut pour les autres semaines car mes deux Widget s'affichent en même temps.

    Affichage suivant différentes semaines de lannée Image 1 Screenshot 20

    J'ai essayé aussi en faisant des conditions séparément, mais le résultat est le même.

    Cordialement

    Jean-Pierre

  • Profile Image
    Ozge
    Répondu le 7 octobre 2025 à 08:36

    Hi jpvaysse5,

    Thanks for reaching out to Jotform Support. After reviewing the form you shared, I noticed that the issue might be caused by conflicting date conditions.

    Affichage suivant différentes semaines de lannée Image 1 Screenshot 20

    In your setup, one condition specifies a date before 11.10.2025, while another requires a date after 09.11.2025, which creates an overlap and prevents the logic from working properly.This might be causing the issue in the conditions section.

    Give it a try and reach out again if you need any other help.


  • Profile Image
    jpvaysse5
    Répondu le 7 octobre 2025 à 17:41

    Bonsoir,

    Désolé mais je n'arrive pas à mettre ces conditions en place.

    Il faudrait que je cache un widget et affiche un autre pour les semaines

    du 05/10/2025 au 11/10/2025

    du 08/11/2025 au 15/11/2025

    du 23/11/2025 au 29/11/2025

    Plus d'autres mais après je pense que je saurai faire.

    Merci pour votre aide

  • Profile Image
    Mary Jotform Support
    Répondu le 7 octobre 2025 à 20:17

    Hi Jean-Pierre,

    I checked and see that you have already created a condition which should work to hide and display widgets per week:

    Affichage suivant différentes semaines de lannée Image 1 Screenshot 20

    You can also do this with the other weeks to cover only a specific date range.

    Let us know if you have any other questions.

  • Profile Image
    jpvaysse5
    Répondu le 8 octobre 2025 à 06:34

    Bonjour,

    Oui mais justement je n'y arrive pas.

    Jean-Pierre

  • Profile Image
    Ozge
    Répondu le 8 octobre 2025 à 08:09

    Hi jpvaysse5,

    After reviewing the form you shared, I noticed that the issue might be caused by the date picker field being hidden and the fact that separate conditions were not created for each of the three date ranges.

    In the following part, I’ll explain step by step (with screenshots) how you disabled the “Hide” setting for the date picker field:

    1.Click the gear icon next to the Semaine 1 date picker field to open its settings.

    Affichage suivant différentes semaines de lannée Image 1 Screenshot 60

    2.Go to the Advanced tab.

    Affichage suivant différentes semaines de lannée Image 2 Screenshot 71

    3.Scroll down and turn off the Hide field option.

    Affichage suivant différentes semaines de lannée Image 3 Screenshot 82


    Once that’s done, we need to make sure there’s a separate condition for each date range you mentioned:

    • du 05/10/2025 au 11/10/2025
    • du 08/11/2025 au 15/11/2025
    • du 23/11/2025 au 29/11/2025

    I’ve created the condition for the first range (du 05/10/2025 au 11/10/2025) and will share a screenshot showing what it looks like:

    Affichage suivant différentes semaines de lannée Image 4 Screenshot 93

    You can then repeat the same steps for the other two date ranges — so in total, you’ll end up with three separate conditions, one for each range.


    When I tested the form after setting up this condition, entering a date within du 05/10/2025 au 11/10/2025 made the “Créneaux d'entraînement Vendredi (Journée de match)” field visible, while the “Créneaux d'entraînement Vendredi” field remained hidden as expected. You can see this result in the screenshot I’ve added below:

    Affichage suivant différentes semaines de lannée Image 5 Screenshot 104

    Give it a try and reach out again if you need any other help.

  • Profile Image
    jpvaysse5
    Répondu le 9 octobre 2025 à 09:40

    Bonjour,

    Le problème c'est que les deux widgets s'affichent quand la date n'est pas dans ces semaines, alors que moi je voudrai que dans ce cas, seulement Créneau d'entrainement Vendredi s'affiche.

    Cordialement

    Jean-Pierre VAYSSE

  • Profile Image
    Kyle Jotform Support
    Répondu le 9 octobre 2025 à 12:15

    Hi Jean-Pierre.

    If you’d like the Training slots Friday widget to be shown by default, and only replaced by Training slots Friday (Match day) during specific weeks, you’ll need to add Show/Hide condition like the one below:

    Affichage suivant différentes semaines de lannée Image 1 Screenshot 40Affichage suivant différentes semaines de lannée Image 2 Screenshot 51Affichage suivant différentes semaines de lannée Image 3 Screenshot 62

    You can add more dates if needed. This setup ensures that outside those specific weeks, only the regular Friday widget is shown.

    Give it a try and let us know if you have any other questions.

  • Profile Image
    jpvaysse5
    Répondu le 9 octobre 2025 à 16:24

    Bonsoir,

    Le problème c'est que j'ai plusieurs semaines à rentrer pour cacher Training lots Friday(Match Day), donc sur 30 jours- 7 jours de la semaine ou il doit y avoir un changement de widget, il faudrait que j'ajoute 23 jours. Sans compter les autres semaines, cela fait beaucoup de conditions sur une année.

    Vous n'auriez pas un autre moyen?

    Cordialement

    Jean-Pierre

  • Profile Image
    Adrian Besilla Jotform Support
    Répondu le 9 octobre 2025 à 18:43

    Hi Jean-Pierre,

    Jotform’s conditional logic currently requires separate rules for each day or date when using the Show/Hide Field condition. There isn’t a built-in way to group multiple date ranges into a single condition, so you’ll need to create one condition for each date range where the widget swap occurs.

    You can simplify the process by carefully planning your date ranges to cover continuous periods whenever possible and by using clear, consistent naming conventions for each condition to keep everything organized. This approach ensures that outside your specified weeks, only the default widget will be displayed, while during the defined weeks, the alternate widget will automatically appear.

    Let us know if you need any more help.



  • Profile Image
    jpvaysse5
    Répondu le 10 octobre 2025 à 09:25

    Bonjour,

    Je pense que j'ai trouvé la solution en faisant autrement.

    Affichage suivant différentes semaines de lannée Image 1 Screenshot 20


Your Reply