• Resolved Neofix

    (@neofix)


    If you have a Date Time field and check “required” it’s basically changing nothing. The “required” warning isn’t showing at any time…

    Because this field is always set with a valid date, it’s possible that a user ignores this field without even noticing. This is especially important for appointment booking or calculators.

    It is possible to preset the field to be empty, but there’s still a value set and therefore, the “required” message never appears.

    Is there any option to display the “required” warning if the user doesn’t change or confirm it’s value?

    btw. I noticed a small typo within Date Time field: [] Disable KEBOARD on mobiles

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @neofix

    Thank you very much for using our plugin. You only should tick the “Use predefined value as placeholder” checkbox in the settings of the Date field and leave empty the “Predefined Value” attribute.

    Best regards.

    Thread Starter Neofix

    (@neofix)

    Edit: It’s working if you press Next button, but not with GOTOPAGE()

    You are able to set the field as empty, if you set a predefined value and check Use value as placeholder. However, if you use GOTOPAGE() function, the empty value isn’t checked and therefore no “required” warning is showing.

    As a workaroud, it’s possible to set the predefined value to empty, use it as placeholder and use a equation as follows:

    
    if(fieldnameXX != 0){
        GOTOPAGE();
    }
    
    • This reply was modified 3 years, 6 months ago by Neofix.
    • This reply was modified 3 years, 6 months ago by Neofix.
    Plugin Author codepeople

    (@codepeople)

    Hello @neofix

    The GOTOPAGE does not check if the fields are valid or not if you are going to the page explicitly by coding.

    If you are calling the GOTOPAGE operation from a button and you want to jump the page only if the fields’ values are valid, you can enter a piece of code similar to the following one as the onclick event:

    if(jQuery(this.form).valid()) GOTOPAGE(1);

    Best regards.

    Thread Starter Neofix

    (@neofix)

    Thank you for the important hint 🙂 I wasn’t aware of this GOTOPAGE() behaviour.

    It’s working fine now.

    • This reply was modified 3 years, 6 months ago by Neofix.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘“required” is useless on date fields’ is closed to new replies.