Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry, but the plugin does not work like that, but if you want add an option with the current year, you can follow the steps below:

    1. Add a class name to the drop-down field through the “Add Css Layout Keywords” attribute, for example: myclass

    2. and then, as part of the equation associated to any of calculated fields in your form, use the code:

    var y = (new Date()).getFullYear();
    jQuery(‘.myclass select’).append( jQuery( ‘<option value=”‘+y+'”>’+y+'</option>’ ) );

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Dropdown Field’ is closed to new replies.