Ajuda para criar regra de validade no widget lista configurável

  • apoioti
    Perguntado em 23 de janeiro de 2024 às 05:47

    Gostaria de adicionar uma regra de validade no widget lista configurável, para que as pessoas que forem preencher só consigam enviar se tiver no prazo de 15 dias de antecedência

  • Ibrar Jotform Support
    Respondido em 23 de janeiro de 2024 às 08:45

    Hi Apoio,

    Thank you for reaching out to Jotform Support. I am currently using a translation to provide assistance, but if you want to get assistance in Portuguese language, we can forward your request to our Portuguese Support Team, but please note that it may take longer to receive a response.

    Although that feature isn’t available yet, as a workaround, we can add a Separate date Picker Field and set a rule based on that field. Let’s do it:

    • In Form builder, add Date Picker 
    • Select the Field, click Gear icon
    • In Options, select Current time
    • In Advance, Hide the field

    Ajuda para criar regra de validade no widget lista configurável Image 1 Screenshot 60

    • Add another Date Picker & set it to hide as well.
    • In Form builder, select Settings
    • Choose Conditions and click on add Condition
    • Select Update/Calculate Field, set Condition as :
    • IF: Current Date
    • STATE: Is Filled
    • DO: Calculate Field Value
    • Current Date + 15
    • SUMMARY: Select MAX Allowed date field

    Ajuda para criar regra de validade no widget lista configurável Image 2 Screenshot 71

    Now add Date Picker, where user will select date for appointment/booking and set Show/Hide condition as:

    • IF: Appointment Date
    • STATE: After
    • TARGET: Another Field
    • FIELD: Max Date
    • DO: Hide
    • FIELD: Submit

    Ajuda para criar regra de validade no widget lista configurável Image 3 Screenshot 82

    Set another condition to show Error when appointment date is not within 15 days

    • Add Paragraph, edit Text, whatever you want to show as Error message
    • Set Show/Hide Condition as:
    • IF: Appointment Date
    • STATE: After
    • TARGET: Another Field
    • FIELD: Max Date
    • DO: Show
    • FIELD: Paragraph

    Ajuda para criar regra de validade no widget lista configurável Image 4 Screenshot 93

    Result:

    Ajuda para criar regra de validade no widget lista configurável Image 5 Screenshot 104

    We also have a guide about Conditional Logic for Online Forms that you can check out.

    Give it a try and let us know if you need any help.