Datatable Removal of Numeric Minimums in input fields

I am trying to remove input field minimums in a Datatable. I am trying to use the following code but having trouble:

fd.spRendered(function() {
    var dt = fd.control('MyTable');
    if (!dt) {
        console.error('MyTable not found');
        return;
    }

    dt.ready().then(function() {
        dt.widget.tbody.find("input[name='ColumnName']").each(function() {
            var numeric = $(this).data('kendoNumericTextBox');
            if (numeric) {
                numeric.min(null);
                var val = numeric.value();
                numeric.value(null);
                numeric.value(val);
            }
        });
    });

    dt.widget.bind('edit', function(e) {
        var numeric = e.container.find('[name="ColumnName"]').data('kendoNumericTextBox');
        if (numeric) {
            numeric.min(null);
        }
    });
});

Any help is appreciated.

Dear @cwalter2,
Have you tried just leaving it empty in the editor?

I have tried that and it does work, however I have found I have to empty the field every time I open the form to edit. My hope is to just solve it with the script so I don’t create issues that aren’t caught until the negative number is needed.

Dear @cwalter2,
Sounds like a bug, does it always reset to 0 for you in SharePoint editor? I'll add it to the bug list we're fixing and we'll try to solve it quickly, probably will take about a week, so you don't need to write any code to fix it.

It is currently happening every time I open the form in designer. It used to not do that.

1 Like

Dear @cwalter2,
Added the bug to our roadmap, should be fixed soon! Thank you for the report!

P.S. Most likely will be published on Monday.

Thank you. Out of curiosity is there a way to do it via JS?

Dear @cwalter2,
A fix has been published! Please, make sure to update the editor or download the latest version from your account - Plumsail Account