• vijok

    (@vijok)


    How to get a ‘dynamic date key’ work on pdb field as a default value on signup form? The field I’m testing is ‘date’ by the type and I’d like to set current year as a default value. The user may change the value, but with limited values between 1970- current year.

    min::1970,max::2023 works when entered as such on attributes field, but the max value should be dynamic as well as the value on default field.

    How should I enter the dynamic date in this case?

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    A “date” type field can only hold a complete date value (day, month and year) so the current_date date key will always represent the current day.

    The min and max attributes will only apply if the field is a “numeric” type.

    Are you using a datepicker? With that, you can set the minYear and maxYear attributes to limit what dates can be selected, but to make it dynamically choose the maxYear value, you’ll need to use some custom code.

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic date key in db field’ is closed to new replies.