Okay
  Public Ticket #2948664
autocomplete="off" in date fields
Closed

Comments

  •  1
    Against started the conversation

    Hi, I would like to add the attribute autocomplete="off" to all the date, time, and datetime input fields.

    I just need to know where is that code section in order to add that mod.

    Thanks for your time,

    David

  •  1,850
    Miloš replied

    Hi, David Huidobro Lopez

    Thank you for your purchase.

    - Sorry for the late response, caused by the holidays.

    We have now passed this to our developers, they will advise us and we will come back to you with an update for this.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Against replied

    Great, thanks!

  •  1,850
    Miloš replied

    Hello again, David.

    One of our developers tweaked the code for this to work.

    You have to modify a piece of the code manually. ( And probably if you update the plugin, you might have to do this again if it gets overwritten)

    There is a PHP file "edit_dialog.inc.php", which you can open using any text editor of your choice.

    The file location is inside your WordPress host folder:

    ../wpdatatables/templates/frontend/edit_dialog.inc.php

    - Close to line 124, you will see code looking like this  :

    <input type="text" value="" id="<?php echo $this->getId() ?>_<?php echo $dataColumn_key ?>" data-key="<?php echo $dataColumn_key ?>" data-column_type="<?php echo $dataColumn->getDataType(); ?>" data-column_header="<?php echo $dataColumn->getTitle(); ?>" data-input_type="<?php echo $dataColumn->getInputType(); ?>" class="form-control input-sm editDialogInput                                        <?php if ($dataColumn->isNotNull()) { ?>mandatory<?php } ?>                                        <?php if ($dataColumn->getDataType() == 'float' || $dataColumn->getDataType() == 'int') { ?>wdt-maskmoney<?php } ?>                                        <?php if ($dataColumn->getInputType() == 'date') { ?>wdt-datepicker<?php } ?>                                        <?php if ($dataColumn->getInputType() == 'time') { ?>wdt-timepicker<?php } ?>                                        <?php if ($dataColumn->getInputType() == 'datetime') { ?>wdt-datetimepicker<?php } ?>">
    
    1327589829.png

    Before this tweak, it spread from line 124 to line 137, as you can see from the screenshot.

    - And then, you have to copy this edited code and paste over it so that, in the end, it will cover from lines 124 to 139 ( assuming the code is on the same lines on your end), and it should look like this :

    <input type="text"        value=""        <?php if ($dataColumn->getInputType() == 'date' || $dataColumn->getInputType() == 'time' || $dataColumn->getInputType() == 'datetime') { ?>            autocomplete="off" <?php } ?>        id="<?php echo $this->getId() ?>_<?php echo $dataColumn_key ?>"        data-key="<?php echo $dataColumn_key ?>"        data-column_type="<?php echo $dataColumn->getDataType(); ?>"        data-column_header="<?php echo $dataColumn->getTitle(); ?>"        data-input_type="<?php echo $dataColumn->getInputType(); ?>"        class="form-control input-sm editDialogInput                     <?php if ($dataColumn->isNotNull()) { ?>mandatory<?php } ?>                     <?php if ($dataColumn->getDataType() == 'float' || $dataColumn->getDataType() == 'int') { ?>wdt-maskmoney<?php } ?>                     <?php if ($dataColumn->getInputType() == 'date') { ?>wdt-datepicker<?php } ?>                     <?php if ($dataColumn->getInputType() == 'time') { ?>wdt-timepicker<?php } ?>                     <?php if ($dataColumn->getInputType() == 'datetime') { ?>wdt-datetimepicker<?php } ?>" />
    9865787667.png

    - After that, save the file, and the autocomplete should be gone from the Date and Time fields.

    Contact us if you need further assistance.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Against replied

    Worked like a charm, thank you very much!

  •  1,850
    Miloš replied

    Hello again, David.

    We are glad to see it works as it should for you.

    If there is anything else we can assist you with please don't hesitate to open a new ticket, and we will be here.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables