Date picker label on Forminator

When Forminator date field has the calendar type selected it shows the label as shown in the screenshot:

And when you select the dropdown or text input the label is not displayed

Is there any way to display that field when selecting dropdown or text input?

Thanks in advance!

  • Nithin
    • Support Wizard

    Hi Anil,

    Hope you are doing good today. :slight_smile:

    At the moment, I'm afraid, there isn't any out of the box setting regarding this to add the label, you can try the following jQuery code, and see whether it helps with making it work with dropdown option:

    <?php
    add_action( 'wp_footer', 'forminator_add_custom_label' );
    function forminator_add_custom_label() {
        ?>
        <script type="text/javascript">
          jQuery(document).ready(function() {
    		jQuery('#date-1 > .forminator-field > .forminator-row').before('<label id="forminator-label-date-1-picker" class="forminator-label" style="margin-bottom:4%">Geburtsdatum <i class="wpdui-icon wpdui-icon-asterisk" aria-hidden="true"></i></label>');
    
          });
        </script>
        <?php
        }

    You can implement the above code as a mu-plugins, please check the following manual on how to make use of mu-plugins:
    https://premium.wpmudev.org/manuals/wpmu-manual-2/using-mu-plugins/

    Please test, and let us know if you have any further query. Have a nice day ahead. :slight_smile:

    Regards,
    Nithin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.