<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Editor — DataTables forums</title>
        <link>https://datatables.net/forums/</link>
        <pubDate>Mon, 09 Nov 2026 02:07:35 +0000</pubDate>
        <language>en</language>
            <description>Editor — DataTables forums</description>
    <language>en</language>
    <atom:link href="https://datatables.net/forums/categories/editor/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Using Python backend</title>
        <link>https://datatables.net/forums/discussion/82003/using-python-backend</link>
        <pubDate>Fri, 06 Nov 2026 12:53:47 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>praabye</dc:creator>
        <guid isPermaLink="false">82003@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>:<br />
<strong>Debugger code (debug.datatables.net)</strong>:<br />
<strong>Error messages shown</strong>:<br />
<strong>Description of problem</strong>:  Hi!</p>

<p>I'm trying to use a Python backend, but I need some more documentation.</p>

<p>A complete example with .html, .js and relevant parts of the .py would be really nice. I've looked through published examples on datatables.net, but do not find anything like this.</p>

<p>I have imported the relevant libraries in my .py, I hope:</p>

<p>from sqlalchemy import create_engine<br />
from datatables_server import Editor, Field, DataTable, Column</p>
]]>
        </description>
    </item>
    <item>
        <title>Editor changed behavior in 3.1.1 when acitvated with on click trigger</title>
        <link>https://datatables.net/forums/discussion/81988/editor-changed-behavior-in-3-1-1-when-acitvated-with-on-click-trigger</link>
        <pubDate>Sun, 25 Oct 2026 11:47:59 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>BjornHa</dc:creator>
        <guid isPermaLink="false">81988@/forums/discussions</guid>
        <description><![CDATA[<p>Test case:<br />
<a rel="nofollow" href="https://live.datatables.net/hadasufu/1/edit">https://live.datatables.net/hadasufu/1/edit</a></p>

<p>I have some editors being triggered with a sub collection of data activated by click on specific column in a DataTable.<br />
The event fires the editor and sets filed data.<br />
In the editor definition I have not used table or dataSrc setting as none seemed to be correct for the case. This worked in 2.3.4,<br />
In 3.1.4, I "need" to set an empty table, i.e.</p>

<pre><code>table: ''
</code></pre>

<p>to get it working. As with the previous checkBox error, I probably have missed something somewhere.</p>

<p>Error diplayed</p>

<pre><code>"TypeError: Cannot use 'in' operator to search for 'current' in null
    at l (https://cdn.datatables.net/v/bs5/jszip-3.10.1/dt-3.1.4/b-4.1.2/cv-1.1.2/date-2.1.2/e-3.1.1/fc-6.1.1/kt-3.1.1/rg-2.1.1/sc-3.1.1/sb-2.1.1/sp-3.0.0/sl-4.1.1/datatables.min.js:65:538)
    at HTMLDocument.&lt;anonymous&gt; (https://cdn.datatables.net/v/bs5/jszip-3.10.1/dt-3.1.4/b-4.1.2/cv-1.1.2/date-2.1.2/e-3.1.1/fc-6.1.1/kt-3.1.1/rg-2.1.1/sc-3.1.1/sb-2.1.1/sp-3.0.0/sl-4.1.1/datatables.min.js:65:88678)
    at HTMLDocument.dispatch (https://testwpadmin-cdn.pro4u.se/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:40035)
(rest left out)
</code></pre>

<p>I also see the same error occur when I use nested DataTables, but here adding an empty table did not solve the problem.</p>

<p>For this problem I would need to provide login to a testsystem as the code base is to huge to create a test case from...</p>

<p>Kr,<br />
Bjørn H</p>
]]>
        </description>
    </item>
    <item>
        <title>Simple join, inline edit mode, submitting via edit() call submits the full table data.</title>
        <link>https://datatables.net/forums/discussion/81975/simple-join-inline-edit-mode-submitting-via-edit-call-submits-the-full-table-data</link>
        <pubDate>Wed, 21 Oct 2026 21:42:55 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>timothy.ctr.searcy@faa.gov</dc:creator>
        <guid isPermaLink="false">81975@/forums/discussions</guid>
        <description><![CDATA[<p><a rel="nofollow" href="https://datatables.net/examples/editor/inline-editing/join.html">https://datatables.net/examples/editor/inline-editing/join.html</a></p>

<p>I have been following this example. I coded my scenario such that the data structure is exactly like given in this example.<br />
1. The data sourced from the AJAX to populate the table is the same<br />
2. The data received after the edit or create call is exactly the same</p>

<p>With that, I am able to create and edit rows in inline mode, except for a column where I have another dropdown where I am performing some edit functions like in the example here: <a rel="nofollow" href="https://datatables.net/examples/editor/triggering-editing/inTableDropdown.html">https://datatables.net/examples/editor/triggering-editing/inTableDropdown.html</a></p>

<p>I have a situation where I am wanting to use the edit() API when any cell of a particular column is clicked. The code for this looks like</p>

<pre><code>contactsGridDt.on('click', 'button[value="N"]', function (e) {
        var rowData = contactsGridDt.row(e.target.closest('tr')).data();
        console.table(rowData);
        contactsEditor.edit(contactsGridDt.row(e.target.closest('tr')).data(), false)
            .set('contacts.active', 'N')
            .set('contacts.contactId', rowData.contacts.contactId)
            .submit();
    });
</code></pre>

<p>The console.table() statement in above snippet prints data for only that one row that was clicked on. However, just prior to the submit, in the AJAX data callback function (where I process data to be submitted), I am finding that the data object contains ALL the rows of the Datatable. I don't have anyway of know which row was just clicked on. Here is the snippet:</p>

<pre><code>contactsEditor = new DataTable.Editor({
        ajax: {
            url: "/idms2/grid/system/updateSystemContact",
            type: "POST",
            data: function(data){
                console.table(data);
                //more processing goes on after this. 

</code></pre>

<p>The console.table() here prints data from all the rows. There is no way I can know which row was just edited!! The row selector in edit() seems to be working as it prints only the row that was clicked on. I don't understand why the full DT data is being submitted.</p>

<p>I understand you expect a live example. But its quite difficult to reproduce the same scenario, with server-side calls and all. We are behind a very strict firewall. I can tell that I have nothing going on after the edit() and prior to submit. I don't have any 'preSubmit' callback. After edit().submit(), I just need to do some data processing in the AJAX data callback.</p>

<p>With this much, can you see any reason why the data for ALL rows is being submitted?</p>
]]>
        </description>
    </item>
    <item>
        <title>TypeScript: Incorrect typing for Editor’s mode() method</title>
        <link>https://datatables.net/forums/discussion/81968/typescript-incorrect-typing-for-editor-s-mode-method</link>
        <pubDate>Mon, 19 Oct 2026 19:08:49 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>peter.bruns</dc:creator>
        <guid isPermaLink="false">81968@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case:</strong> <a rel="nofollow" href="https://stackblitz.com/edit/vitejs-vite-hvmmyifr?file=package.json,src%2Fmain.ts">https://stackblitz.com/edit/vitejs-vite-hvmmyifr?file=package.json,src%2Fmain.ts</a></p>

<p>Hi,</p>

<p>I'm using DataTables 3.1.4 and Editor 3.1.1 with TypeScript.</p>

<p>The return type of editor.mode() is currently:</p>

<pre><code>null | 'bubble' | 'inline' | 'main'
</code></pre>

<p>According to the documentation, it should be:</p>

<pre><code>null | 'create' | 'edit' | 'remove'
</code></pre>

<p>It looks like the declaration uses the display mode type instead of the operation type. The setter overload appears to have the same issue.</p>
]]>
        </description>
    </item>
    <item>
        <title>Datatables Editor in inline editing mode, sourcing data from joined tables, throws validation error</title>
        <link>https://datatables.net/forums/discussion/81950/datatables-editor-in-inline-editing-mode-sourcing-data-from-joined-tables-throws-validation-error</link>
        <pubDate>Tue, 06 Oct 2026 11:50:16 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>timothy.ctr.searcy@faa.gov</dc:creator>
        <guid isPermaLink="false">81950@/forums/discussions</guid>
        <description><![CDATA[<p><a rel="nofollow" href="https://datatables.net/examples/editor/inline-editing/join.html">https://datatables.net/examples/editor/inline-editing/join.html</a></p>

<p>I have a scenario where I got data into Datatables exactly as shown in the example above. The JSON structure is same. However, even in the above working example, if you try editing any column other than the dropdown, you will see a validation error "Input not valid". Same effect is replicated in my code.</p>

<p>Does anybody know why this happens, and what is the fix?</p>

<p>In the above example, after any text column edit, the join.php call returns data that has fieldErrors. Possibly the server side id returning data like that, there is no reason why a 7-8 letter text would not accept the input. It would be helpful to see a example with both - dropdown column and text fields being successfully edited from inline editor. In this example, only dropdown can be edited.</p>

<p>Also, I thought of putting this as comment on the example page itself. Somehow, I don't see any way I can enter comments for this example.</p>

<p>Thanks.</p>
]]>
        </description>
    </item>
    <item>
        <title>Initializing a DataTables 2 Editor</title>
        <link>https://datatables.net/forums/discussion/81944/initializing-a-datatables-2-editor</link>
        <pubDate>Thu, 01 Oct 2026 20:00:01 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>STScI WASABI Team</dc:creator>
        <guid isPermaLink="false">81944@/forums/discussions</guid>
        <description><![CDATA[<p>I am upgrading legacy DataTables 1.10 instances and I am trying to create a stable 2.x setup before proceeding on to DataTables 3. In the process of upgrading Editor 1.8.1 to Editor 2.5.1 I am getting errors on both the legacy <code>$.fn.dataTable</code> and the newer documentation-specified format when initializing:</p>

<pre><code>function userRemoveEditor(tableId) {
return new $.fn.dataTable.Editor({
        ajax: {
            remove: '/app/appUser/remove'
        },
        table: tableId
    });
}
</code></pre>

<p>Uncaught TypeError: $.fn.dataTable.Editor is not a constructor</p>

<pre><code>function userRemoveEditor(tableId) {
    return new DataTable.Editor({
        ajax: {
            remove: '/app/appUser/remove'
        },
        table: tableId
    });
}
</code></pre>

<p>Uncaught TypeError: DataTable.Editor is not a constructor</p>

<p>What is the correct syntax for initializing a DataTables 2 editor instance?</p>

<p>Environment:</p>

<p>jQuery 3.7.1<br />
DataTables 2.3.8, Bootstrap 4<br />
Editor 2.5.1</p>
]]>
        </description>
    </item>
    <item>
        <title>Suming value of child table in parent table</title>
        <link>https://datatables.net/forums/discussion/81763/suming-value-of-child-table-in-parent-table</link>
        <pubDate>Sun, 03 May 2026 14:12:43 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>carrarachristophe</dc:creator>
        <guid isPermaLink="false">81763@/forums/discussions</guid>
        <description><![CDATA[<p>Hello,<br />
I refer to the <a rel="nofollow" href="https://editor.datatables.net/examples/advanced/parentChild.html" title="parent child editor">parent child editor</a>.<br />
Is there a way to, instead of counting the number of users</p>

<pre><code>        {
            data: 'users',
            render: (data) =&gt; data.length
        }
</code></pre>

<p>We make the sum of a users' field, for example their age?</p>

<p>I found <a rel="nofollow" href="https://datatables.net/forums/discussion/63212" title="this post">this post</a> but I am not sure it is pointing me in the right direction.</p>

<p>Thanks and regards</p>
]]>
        </description>
    </item>
    <item>
        <title>Editor checkbox not behaving correctly (CSS)</title>
        <link>https://datatables.net/forums/discussion/81893/editor-checkbox-not-behaving-correctly-css</link>
        <pubDate>Thu, 27 Aug 2026 09:15:07 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>resqonline</dc:creator>
        <guid isPermaLink="false">81893@/forums/discussions</guid>
        <description><![CDATA[<p>Current Version: DataTables 3.0.2 / Editor 3.0.1</p>

<p>There is a CSS issue with Editor checkbox which doesn't render correctly when clicking in it. The first click only highlights the field (focus), but doesn't show the checkmark. Only after you click somewhere else, the checked display is shown.</p>

<p>The CSS interfering with the checkbox rendering is:</p>

<pre><code>  div.DTE_Field input, div.DTE_Field textarea {
      transition: background-color ease-in-out .15s;
  }
  div.DTE_Field input:focus, div.DTE_Field textarea:focus {
      background-color: #ffe;
  }
</code></pre>

<p>The problem is the 'broad' definition of input, which results in checkboxes or radio buttons to behave like regular inputs.</p>

<p>This is the fix I applied to my own CSS:</p>

<pre><code>/* Editor checkbox/radio checked-state repaint fix */
div.DTE_Field input[type="checkbox"],
div.DTE_Field input[type="radio"] {
    transition: none;
}
div.DTE_Field input[type="checkbox"]:focus,
div.DTE_Field input[type="radio"]:focus {
    background-color: transparent;
}
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>composer download builder</title>
        <link>https://datatables.net/forums/discussion/81878/composer-download-builder</link>
        <pubDate>Tue, 18 Aug 2026 14:46:13 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>zess</dc:creator>
        <guid isPermaLink="false">81878@/forums/discussions</guid>
        <description><![CDATA[<p>Hello,</p>

<p>if I use the download builder and the composer section<br />
the editor doesn't displayed there.</p>
]]>
        </description>
    </item>
    <item>
        <title>Editor 3 doesn't activate, but Editor 2 works flawlessly with the exact same code</title>
        <link>https://datatables.net/forums/discussion/81858/editor-3-doesnt-activate-but-editor-2-works-flawlessly-with-the-exact-same-code</link>
        <pubDate>Fri, 07 Aug 2026 11:52:50 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>henrik k</dc:creator>
        <guid isPermaLink="false">81858@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>:<br />
<strong>Debugger code (debug.datatables.net)</strong>:<br />
<strong>Error messages shown</strong>:<br />
None<br />
<strong>Description of problem</strong>:</p>

<p>We're in the process of updating to DT3 including Editor 3. The current status is that we are able to use DT3 with our code as expected. But the when function editor.inline( this ) is called when a user selects a row for editing doesn't lead to anything, not even an error message.</p>

<p>The Editor is initiated with this code:</p>

<pre><code>editor = new DataTable.Editor( {
            table: '#' + domId,
            fields: dtData.fields ? dtData.fields : dtData.columns.map( col =&gt; ( { label: col.title, name: col.data, variable: col.type } ) ),
            formOptions: { inline: { submit: 'changed' } },
            idSrc: dtData.idSrc ?? dtData.rowId,
        } );
</code></pre>

<p>And the inline function is called like this:</p>

<pre><code>targetTable.on( 'dblclick', 'tbody td', function ( event ) {
            event.preventDefault();
            if ( event.currentTarget.className.includes( 'editable' ) )
                editor.inline( this, { submit: dtData.logicSource === 'events' ? 'all' : 'changed' } );
        } );
</code></pre>

<p>The callback does get called, including the editor.inline function, but then nothing more happens.</p>

<p>When reverting back to DT2.3.8/Editor 2 everything works again.</p>

<p>I've currently not tried to create a test case for this, will try to do that later if needed.</p>
]]>
        </description>
    </item>
    <item>
        <title>Modification of selectize plug in to update options dynamically</title>
        <link>https://datatables.net/forums/discussion/81832/modification-of-selectize-plug-in-to-update-options-dynamically</link>
        <pubDate>Thu, 23 Jul 2026 17:38:49 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>rf1234</dc:creator>
        <guid isPermaLink="false">81832@/forums/discussions</guid>
        <description><![CDATA[<p>I have long been unhappy about the selectize plug in because I was dissatisfied with updating the options. The update didn't work if the selectize field had a value that was not included in the new options. The expected behavior would have been that selectize clears the field contents because it is no longer part of the options and subsequently loads the new options. But that didn't happen: The  field contents wasn't cleared and the options weren't replaced either.</p>

<p>My work around was to clear() the field from Editor and than add() the field back into Editor with the new options. That was cumbersome, inflated my code, destroyed all the dependencies I had attached to the field previously and created unnecessary change events. Not nice.</p>

<p>My solution below:<br />
- checks whether the current field value exists in the new options<br />
- if not: the field value is cleared<br />
- finally the options are update with the new options</p>

<p>Here is the current plugin:<br />
<a rel="nofollow" href="https://editor.datatables.net/plug-ins/field-type/editor.selectize">https://editor.datatables.net/plug-ins/field-type/editor.selectize</a></p>

<p>I replaced this:</p>

<pre><code>update: function ( conf, options ) {
    _fieldTypes.selectize._addOptions( conf, options );
},
</code></pre>

<p>with this new code:</p>

<pre><code>update: function ( conf, options ) {
    var currentValue = _fieldTypes.selectize.get( conf );
    var valueExists = options.some(function(opt) {
        return opt.value === currentValue;
    });
    if (! valueExists) {
        _fieldTypes.selectize.clear( conf );
    }
    _fieldTypes.selectize._addOptions( conf, options );
},

clear: function( conf ) {
    var selectize = conf._selectize;

    selectize.clear(true);  // 'true' silent flag prevents unnecessary change events
}
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>One-to-many nested editors</title>
        <link>https://datatables.net/forums/discussion/81797/one-to-many-nested-editors</link>
        <pubDate>Thu, 04 Jun 2026 07:16:40 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>IT CMS</dc:creator>
        <guid isPermaLink="false">81797@/forums/discussions</guid>
        <description><![CDATA[<p>Hi everyone,</p>

<p>Maybe I missed something, but I can't find a way to do it.</p>

<p>Here are more details on what I'm trying to do:</p>

<p>I have two tables:<br />
- Table "items"<br />
    - item_id<br />
    - item_name<br />
    - ...<br />
- Table "subitems":<br />
    - subitem_id<br />
    - item_id<br />
    - subitem_name<br />
    ...</p>

<p>I want to be able to perform CRUD operations on my subitems directly from the "items" editor.</p>

<p>My first idea was to use a nested editor like this: <a rel="nofollow" href="https://editor.datatables.net/examples/datatables/nested">https://editor.datatables.net/examples/datatables/nested</a> (or multiple version).<br />
However, that isn't the solution because the nested editor lists all the "subitems", and the user needs to select them.<br />
I only want to be able to CRUD "subitems" linked to the current "item" through the "subitems.item_id".</p>

<p>Is there a way to do that with a nested editor?</p>

<p>If not, how could I do it?</p>

<p>Thanks, Renaud</p>
]]>
        </description>
    </item>
    <item>
        <title>How to disable onEsc in child editor?</title>
        <link>https://datatables.net/forums/discussion/81792/how-to-disable-onesc-in-child-editor</link>
        <pubDate>Tue, 26 May 2026 13:24:57 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>maxmedia</dc:creator>
        <guid isPermaLink="false">81792@/forums/discussions</guid>
        <description><![CDATA[<p>Using datatables field type in main editor, I open child editor. When user press Escape, both editors close.<br />
I need to disable Escape in child editor.</p>

<p>I tried opening child editor from datatables field buttons like this:<br />
<code>{ extend: 'create', editor: incRefundsEditor, formOptions: {onEsc: 'none', nest: true} }</code><br />
but nothing happened, Escape still closes both editors.</p>

<p>When I add <code>onEsc: 'none'</code> to parent editor this way it works as intended. But still opening child editor and pressing Escape closes both editors.</p>

<p>Any ideas?</p>
]]>
        </description>
    </item>
    <item>
        <title>Editor Ajax URL Replacement not working for uploads</title>
        <link>https://datatables.net/forums/discussion/81522/editor-ajax-url-replacement-not-working-for-uploads</link>
        <pubDate>Mon, 17 Nov 2025 15:25:26 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>rozro</dc:creator>
        <guid isPermaLink="false">81522@/forums/discussions</guid>
        <description><![CDATA[<p>Hi, i just noticed that the {id} URL Parameter in Editor is not working for "upload" object.</p>

<p>See example here:<br />
<a rel="nofollow" href="https://live.datatables.net/holeqaca/4/edit">https://live.datatables.net/holeqaca/4/edit</a></p>

<p>The POST is executed to url: <a rel="nofollow" href="https://live.datatables.net/upload/%7Bid%7D">https://live.datatables.net/upload/%7Bid%7D</a> and the {id} is not replaced.</p>

<p>I think this is a bug.<br />
Is it possible to fix it?</p>
]]>
        </description>
    </item>
    <item>
        <title>ScrollX causes error when deleting all rows of last page</title>
        <link>https://datatables.net/forums/discussion/81741/scrollx-causes-error-when-deleting-all-rows-of-last-page</link>
        <pubDate>Mon, 13 Apr 2026 15:49:53 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>Edus001</dc:creator>
        <guid isPermaLink="false">81741@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: <a rel="nofollow" href="https://live.datatables.net/hiniqeni/1/edit?js,console,output">https://live.datatables.net/hiniqeni/1/edit?js,console,output</a><br />
<strong>Error messages shown</strong>: settings.aoData[idx] is undefined<br />
<strong>Description of problem</strong>: When scrollX is set to true in the table options, deleting all rows <strong>of the last page</strong> causes the error in question. With scrollX set to false, the problem doesn't occur.</p>

<p>I came across this error in my app, wanted to see if a minimal example in live.datatables.net would have the same result. In both cases there is an error in the _fnScrollDraw function when scrollX is set to true. Any help is appreciated.</p>
]]>
        </description>
    </item>
    <item>
        <title>missing server script from example</title>
        <link>https://datatables.net/forums/discussion/81754/missing-server-script-from-example</link>
        <pubDate>Mon, 20 Apr 2026 12:51:51 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>nlooije</dc:creator>
        <guid isPermaLink="false">81754@/forums/discussions</guid>
        <description><![CDATA[<p>I am trying to debug a problem with a nested editor not selecting the values in the datatable like in the <a rel="nofollow" href="https://editor.datatables.net/examples/datatables/nestedList.html" title="Nested editing - multiple selection">Nested editing - multiple selection</a> example.<br />
I noticed the server script is missing, could you correct this?</p>
]]>
        </description>
    </item>
    <item>
        <title>user added select values</title>
        <link>https://datatables.net/forums/discussion/81742/user-added-select-values</link>
        <pubDate>Mon, 13 Apr 2026 19:54:52 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>louking</dc:creator>
        <guid isPermaLink="false">81742@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Description of problem</strong>:</p>

<p>I intend to have an editor field where the user can add email addresses. These will not be stored in a separate table from which the options can be retrieved. These will be stored the table I'm editing which will store these as a@example.com;b@example.com. I initially tried doing this with select2 using its tags feature, but the data which is already in the table isn't shown when I bring up the editor modal. (The table already has single email addresses as text fields, but I want to add the feature allowing the user to add or create multiple addresses)</p>

<p>I want to create a link to a test case, but first I want to verify that select2 is an ok way to do this. Most of the selects in my application are select2.</p>

<p>I looked briefly at the tags data type, but I don't think this works for my use case.</p>

<p>Assuming select2 is fine, where is the best place to find a live version I can clone to show my problem?</p>
]]>
        </description>
    </item>
    <item>
        <title>Using -&gt;set(false)-&gt;get(false) for field validation on non-database fields</title>
        <link>https://datatables.net/forums/discussion/81731/using-set-false-get-false-for-field-validation-on-non-database-fields</link>
        <pubDate>Tue, 07 Apr 2026 13:12:06 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>Loren Maxwell</dc:creator>
        <guid isPermaLink="false">81731@/forums/discussions</guid>
        <description><![CDATA[<p>Just a quick note for anyone that might find it helpful (plus a small suggestion for <a href="/forums/profile/allan" rel="nofollow">@allan</a> at the end!):</p>

<p>Out of the box, Editor has very useful server-side field validation:<br />
<a rel="nofollow" href="https://editor.datatables.net/manual/php/validation">https://editor.datatables.net/manual/php/validation</a></p>

<p>(Lately I've especially taken advantage of the relatively new <code>dependsOn()</code> method!)</p>

<p>But occasionally data is submitted from the client-facing fields that don't match the fields in my table.</p>

<p>These non-database fields are used to do other things on the backend, but my point here is that I've previously done validation on those non-database fields in a global validator, which doesn't allow me to use the built-in field validation tools from Editor and also returns a global error instead of a field-specific one, so the UI isn't as helpful.</p>

<p><strong>MY OLD WAY</strong></p>

<pre><code>// Requires: id, player_code, and school_code (all database fields)
// And either school_code or school_name_manual (not database fields) for other processing

Editor::inst( $db, 'players_seasons' )
    -&gt;fields(
         
        Field::inst( 'id' ),
        Field::inst( 'player_code' )
            -&gt;validator( 'Validate::notEmpty' ),
        Field::inst( 'season_code' )
            -&gt;validator( 'Validate::notEmpty' )
    )

    // Non-database fields checked in a global validator
    -&gt;validator( function ( $editor, $action, $data ) {
        if ( $action === Editor::ACTION_CREATE ) {   
            foreach ( $data['data'] as $pkey =&gt; $values ) {
                if (
                    empty($values['school_code'])
                    &amp;&amp; empty($values['school_name_manual'])
                ) {
                    return "School cannot be blank";
                }
                return true;
            }
        }
        return true;
    });
</code></pre>

<p>However I've recently realized that by using both <code>set(false)</code> and <code>get(false)</code>, the server-side Editor will accept those non-database fields without fussing they don't match the fields in the table and I can use field validation:</p>

<p><strong>MY NEW WAY</strong></p>

<pre><code>// Requires: id, player_code, and school_code (all database fields)
// And either school_code or school_name_manual (not database fields) for other processing

Editor::inst( $db, 'players_seasons' )
    -&gt;fields(
        Field::inst( 'id' ),
        Field::inst( 'player_code' )
            -&gt;validator( 'Validate::notEmpty' ),
        Field::inst( 'season_code' )
            -&gt;validator( 'Validate::notEmpty' ),
        
        // Non-database fields checked in a field validator
        // with -&gt;set(false)-&gt;get(false)
        
        Field::inst( 'school_name_manual' )-&gt;set(false)-&gt;get(false),
        
        Field::inst( 'school_code' )-&gt;set(false)-&gt;get(false),
            -&gt;validator( Validate::notEmpty( ValidateOptions::inst()
                -&gt;message( 'School cannot be blank' )
                -&gt;dependsOn(function ($val, $row, $host) {
                    return empty($row['school_name_manual']);
                })
            ))
    );
</code></pre>

<p>This does the same thing except it's cleaner coding and the error for a missing <code>school_code</code> and <code>school_name_manual</code> shows on the client side under the specific field the client sees.</p>

<hr />

<p>Suggestion for <a href="/forums/profile/allan" rel="nofollow">@allan</a> would be to include an <code>ignore()</code> method (or <code>submit(false)</code> or something similar) that would do the same as the <code>-&gt;set(false)-&gt;get(false)</code>, such as:</p>

<p><strong>SUGGESTION</strong></p>

<pre><code>// Requires: id, player_code, and school_code (all database fields)
// And either school_code or school_name_manual (not database fields) for other processing

Editor::inst( $db, 'players_seasons' )
    -&gt;fields(
        Field::inst( 'id' ),
        Field::inst( 'player_code' )
            -&gt;validator( 'Validate::notEmpty' ),
        Field::inst( 'season_code' )
            -&gt;validator( 'Validate::notEmpty' ),
        
        // Non-database fields
        // with -&gt;ignore() (or submit(false) or something similar)
        
        Field::inst( 'school_name_manual' )-&gt;ignore(),
        
        Field::inst( 'school_code' )-&gt;ignore(),
            -&gt;validator( Validate::notEmpty( ValidateOptions::inst()
                -&gt;message( 'School cannot be blank' )
                -&gt;dependsOn(function ($val, $row, $host) {
                    return empty($row['school_name_manual']);
                })
            ))
    );
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>What is the media query / css I need to change to make the small device style the same for large dev</title>
        <link>https://datatables.net/forums/discussion/81722/what-is-the-media-query-css-i-need-to-change-to-make-the-small-device-style-the-same-for-large-dev</link>
        <pubDate>Sun, 29 Mar 2026 18:32:01 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>rmeetin</dc:creator>
        <guid isPermaLink="false">81722@/forums/discussions</guid>
        <description><![CDATA[<p><img src="https://datatables.net/forums/uploads/editor/rb/hjw9arepiejf.png" alt="" title="" /></p>

<p>In the Desktop view Limit Results is left-aligned and Search is right-aligned. On small devices maybe under 768px, not sure, they are stacked and center-aligned.</p>

<p>1) What CSS do I need to add  (to my custom css) to make the small device view the only view?<br />
2) How then do I make both Limit Results and Search left-aligned in the view</p>

<p>This is BS4, but would like to be able to do this with BS5 too.</p>

<p>Much thanks</p>
]]>
        </description>
    </item>
    <item>
        <title>Editor File upload</title>
        <link>https://datatables.net/forums/discussion/81684/editor-file-upload</link>
        <pubDate>Wed, 18 Feb 2026 13:37:12 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>klymov.inekon</dc:creator>
        <guid isPermaLink="false">81684@/forums/discussions</guid>
        <description><![CDATA[<p>Hi, I have a question about file uploading.</p>

<p>I tried to download the .exe file (such requirements). During a example upload, it caused the page to refresh. I got around this by adding it to the ajax field.</p>

<pre><code>{
    name: 'File',
    data: 'File',
    label: 'File',
...
    type: 'upload',
    attr: {
        accept: ".exe,.msi",
    },

    ajax: function (files, done) {
        if (files.length == 0) return;
        done(files)
    },

    display: function (file) {
        return `&lt;span&gt; ${file.name} &lt;/span&gt;`;
    },

},
</code></pre>

<p>It worked, and when I submit, I see in the data that the field has a value with the type FILE.</p>

<pre><code><br />create: {
    type: 'POST',
    url: 'route',
    data: function (d) {
        debugger
        var file = d.data[0].ClientVersion.File; // file exist
       

        return d;
    },

},
</code></pre>

<p>But then I've an errors</p>

<pre><code>jquery.js:10073  Uncaught TypeError: Illegal invocation
jquery.js:10073  Uncaught (in promise) TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation
</code></pre>

<p>I've tried to set  contentType but it not helped.</p>

<pre><code>    contentType: 'application/x-www-form-urlencoded',
</code></pre>

<p>What should I do to send it to .net editor endpoint?</p>

<p>I don't need this file saved on server some way. I need to store it to database via MemoryStream. I've set for now in endpoint</p>

<pre><code>.SetFormatter((val,data)=&gt;{
    var file = val as IFormFile;
    if(file is null) return null;
    using (var memoryStream = new MemoryStream())
    {
        file.CopyTo(memoryStream);
        var fileContent = memoryStream.ToArray();
        return fileContent;
    }
}),
</code></pre>

<p>Maybe some solution to do this in js before sending file, rewrite field into byte array and send like standard value?</p>
]]>
        </description>
    </item>
    <item>
        <title>Editor mode vs action terminology</title>
        <link>https://datatables.net/forums/discussion/81618/editor-mode-vs-action-terminology</link>
        <pubDate>Wed, 21 Jan 2026 14:15:28 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>Loren Maxwell</dc:creator>
        <guid isPermaLink="false">81618@/forums/discussions</guid>
        <description><![CDATA[<p>This is admittedly trivial, but I've been meaning to mention it and I'm virtually sitting in a boring staff meeting so I thought this might be a good time <img src="https://datatables.net/forums/resources/emoji/smile.png" title=":smile:" alt=":smile:" height="20" /></p>

<p>The API has <a rel="nofollow" href="//datatables.net/ref/editor/api/mode()"><code title="Editor API method">mode()</code></a>, which is either <code title="String">create</code>, <code title="String">edit</code>, or <code title="String">remove</code>.</p>

<p>But for events, such as <a rel="nofollow" href="//datatables.net/ref/editor/event/open"><code title="Editor event">open</code></a>, the parameters are <code>function( e, mode, action )</code>, where the <code>mode</code> is <code title="String">main</code>, <code title="String">inline</code>, or <code title="String">bubble</code>.</p>

<p>The <code>action</code> parameter is where the <code title="String">create</code>, <code title="String">edit</code>, or <code title="String">remove</code> are found.</p>

<p>There have been a couple of times I've programed an <code>event</code> where I've done:</p>

<pre><code>editor.on('open', function (e, mode, action) {
    // Should be "action == 'edit'" but the
    // api method "mode()" has thrown me off
    if (mode == 'edit') {
        ...
    }
});
</code></pre>

<p>The inconsistency always makes me wonder if it wouldn't be better to use the terminology from the <code>event</code> fields and have an <a rel="nofollow" href="//datatables.net/ref/editor/api/action()"><code title="Editor API method">action()</code></a> method that will eventually replace the <a rel="nofollow" href="//datatables.net/ref/editor/api/mode()"><code title="Editor API method">mode()</code></a> method?</p>
]]>
        </description>
    </item>
    <item>
        <title>one-to-many join</title>
        <link>https://datatables.net/forums/discussion/81692/one-to-many-join</link>
        <pubDate>Fri, 20 Feb 2026 08:48:43 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>nlooije</dc:creator>
        <guid isPermaLink="false">81692@/forums/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>I am trying to get a one-to-many join with the PHP libs working but I am having issues setting it up.<br />
For some reason the <code>link</code> method does not set up the joins as i expect</p>

<p>What i am trying to do:<br />
- I have table <code>MATERIALS</code> containing all my materials with fields <code>ID</code>, <code>DESCRIPTION</code>, etc<br />
- a table <code>CHECKLIST</code> containing regulated materials with fields <code>ID</code>, <code>MATERIAL_ID</code> (links to table <code>MATERIALS</code>), etc<br />
- and a table <code>CHECKLIST_ALTERNATIVES</code> containing alternatives materials for a regulated material with fields <code>CHECK_ID</code> (links to table <code>CHECKLIST) and</code>MATERIAL_ID<code>(links to table</code>MATERIALS`)</p>

<p>The query I am trying to recreate (I think) is:</p>

<pre><code>SELECT DISTINCT MATERIALS.ID as 'dteditor_pk',
    ALTERNATIVES.DESCRIPTION
FROM MATERIALS
JOIN CHECKLIST
    ON CHECKLIST.MATERIAL_ID = MATERIAL.ID
JOIN CHECKLIST_ALTERNATIVES
    ON CHECKLIST_ALTERNATIVES.CHECK_ID = CHECKLIST.ID
JOIN MATERIALS ALTERNATIVES
    ON ALTERNATIVES.ID = CHECKLIST_ALTERNATIVES.MATERIAL_ID
</code></pre>

<p>because i am referencing the <code>MATERIALS</code> table twice i need to alias the second instance.<br />
This seems to return the data correctly if i run the query directly on the database:</p>

<p>dteditor_pk DESCRIPTION<br />
6443    test material 1<br />
6447    test material 2<br />
etc</p>

<p>but this requires three joins which <code>link</code> method does not support.<br />
So i create a VIEW combining <code>CHECKLIST_ALTERNATIVES</code> and <code>MATERIALS</code> on field <code>MATERIAL_ID</code>:</p>

<pre><code>SELECT DISTINCT VDSTAM.ID as 'dteditor_pk',
    ALTERNATIVES.DESCRIPTION
FROM MATERIALS
JOIN CHECKLIST
    ON CHECKLIST.MATERIAL_ID = MATERIALS.ID
JOIN CHECKLIST_ALTERNATIVES_VIEW ALTERNATIVES
    ON ALTERNATIVES.CHECK_ID = CHECKLIST.ID
</code></pre>

<p>This still returns the correct data when checked running the query.</p>

<p>Implementing this with the PHP libs:</p>

<pre><code>$editor = Editor::inst($db, 'MATERIALS', "ID");

$fields = array();
$fields[] = Field::inst('MATERIALS.ID');
$fields[] = Field::inst('MATERIALS.DESCRIPTION');
$fields[] = Field::inst('CHECKLIST.MATERIAL_ID');

$editor-&gt;fields($fields);
$editor-&gt;leftJoin('CHECKLIST', 'CHECKLIST.MATERIAL_ID', '=', 'MATERIALS.ID');

$m = Mjoin::inst('MATERIALS');
$m-&gt;link('MATERIALS.ID', 'CHECKLIST.MATERIAL_ID');
$m-&gt;link('CHECKLIST_ALTERNATIVES_VIEW.CHECK_ID', 'CHECKLIST.ID');

$fields = array();
$fields[] = Field::inst('DESCRIPTION'); // should be from CHECKLIST_ALTERNATIVES_VIEW

$m-&gt;fields($fields);

$editor-&gt;join($m);
</code></pre>

<p>The generated SQL query is:</p>

<pre><code>SELECT DISTINCT [MATERIAL].[ID] as 'dteditor_pkey',
    [MATERIALS].[OMSCHRIJVING1] as 'OMSCHRIJVING1' 
FROM  [MATERIALS]
JOIN [CHECKLIST] 
    ON [MATERIALS].[ID] = [CHECKLIST].[MATERIAL_ID]   
JOIN [MATERIALS] 
    ON [MATERIALS].[CHECK_ID] = [CHECKLIST].[ID]
</code></pre>

<p>This generates an SQL error because it is trying to set up a self-referencing table <code>MATERIALS</code> without an alias.<br />
But this is not the query i am looking for anyway compared to the query above.</p>

<p>It seems the second <code>link</code> is not used (correctly):</p>

<pre><code>$m-&gt;link('CHECKLIST_ALTERNATIVES_VIEW.CHECK_ID', 'CHECKLIST.ID');
</code></pre>

<p>should not lead to:</p>

<pre><code>JOIN [MATERIALS] 
    ON [MATERIALS].[CHECK_ID] = [CHECKLIST].[ID]
</code></pre>

<p>Can you provide any insight into how to deal with this issue?<br />
I hope everything is clear, if not i can add more info</p>
]]>
        </description>
    </item>
    <item>
        <title>Using the where clause in Editor to limit records</title>
        <link>https://datatables.net/forums/discussion/81687/using-the-where-clause-in-editor-to-limit-records</link>
        <pubDate>Wed, 18 Feb 2026 23:19:47 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>kkuti</dc:creator>
        <guid isPermaLink="false">81687@/forums/discussions</guid>
        <description><![CDATA[<p>I have tried but failed to get the where clause to Limit the number of records selected. I have used other multiple where conditions as they have worked but perhaps it is a syntax issue to get the Limit clause to work. Any suggestions please</p>
]]>
        </description>
    </item>
    <item>
        <title>Can I set a filter from one page to another DataTable?</title>
        <link>https://datatables.net/forums/discussion/81645/can-i-set-a-filter-from-one-page-to-another-datatable</link>
        <pubDate>Tue, 03 Feb 2026 13:22:28 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>arie0512</dc:creator>
        <guid isPermaLink="false">81645@/forums/discussions</guid>
        <description><![CDATA[<p>Hello,</p>

<p>I have an overview page where they can see how many sub categories one person had, for example a person Joe Doe have an overview page which has said it had 8 requests.</p>

<p>I want to make from this number 8 a link to another existing DataTable (query.php) and open this page which this 8 records.</p>

<p>The query.php looks like this:</p>

<pre><code>&lt;div class="pb-5"&gt;
    &lt;table id="table-request" class="table-responsive stripe hover row-border compact nowrap"&gt;
      &lt;thead&gt;
        &lt;tr&gt;
          &lt;th&gt;Clientnumber&lt;/th&gt;
          &lt;th&gt;Name&lt;/th&gt;
          &lt;th&gt;Product&lt;/th&gt;          
        &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;          
      &lt;/tbody&gt;  
    &lt;/table&gt; 
  &lt;/div&gt;

$(document).ready(function() {

new DataTable('#table-request', {
ajax: {
    url: '/crm/ajax/request-data.php',
    type: 'POST'
},
columns: [        
    { data: 'request.clientnumber' },        
    { data: 'request.name' },
    { data: 'request.product' }
],
columnDefs: [
  { targets: [0], className: 'dt-body-left'},
  { targets: [0], render: DataTable.render.number( '.', ',', 0 ) }
],      
order: [[0, 'asc']],
pagingType: 'full_numbers',
pageLength: 25, 
language: {
  url: 'https://cdn.datatables.net/plug-ins/1.11.5/i18n/nl-NL.json'
},          
search: {
  smart: false
} 
});
</code></pre>

<p>If the client has clientnumber 3, how can I make a link from the overview page which opens the query.php and filter out only clientnumber 3? So only 8 records are visible?</p>

<p>Kind regards,</p>

<p>Arie</p>
]]>
        </description>
    </item>
    <item>
        <title>Working TypeScript example with current Editor + DataTable?</title>
        <link>https://datatables.net/forums/discussion/81047/working-typescript-example-with-current-editor-datatable</link>
        <pubDate>Mon, 16 Jun 2025 15:15:41 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>kylecordes</dc:creator>
        <guid isPermaLink="false">81047@/forums/discussions</guid>
        <description><![CDATA[<p>Is anyone aware of a working TypeScript example with the current Editor and current DataTable?</p>

<p>I'm installing from npm, which is of course the normal natural way to do this in a TypeScript application.</p>

<p><a rel="nofollow" href="https://editor.datatables.net/manual/installing/">https://editor.datatables.net/manual/installing/</a></p>

<p>I'm running, as of a few days ago, the most current version of each relevant package:</p>

<pre><code>    "@datatables.net/editor-dt": "^2.4.2",
    "datatables.net-dt": "^2.3.2",
    "datatables.net-react": "^1.0.1",
</code></pre>

<p>And I'm starting with just the tiniest bit of code, roughly this:</p>

<pre><code>import DataTable from 'datatables.net-react';
import DataTablesCore from 'datatables.net-dt';
import Editor from '@datatables.net/editor-dt';

DataTable.use(DataTablesCore);
</code></pre>

<p>The last line results in a bevy of TypeScript errors.  The errors go away if commenting out the line that imports the editor. This is because the editor is bringing in a different set of TypeScript definitions, causing that last line, which doesn't even mention editor, to become broken.</p>

<p>An actual working example with TypeScript, Editor, and Data Table would resolve the question of whether this is possible and what combinations of versions, etc., are needed to make it work.</p>
]]>
        </description>
    </item>
    <item>
        <title>Proposed best practice for hiding custom template on page load</title>
        <link>https://datatables.net/forums/discussion/81660/proposed-best-practice-for-hiding-custom-template-on-page-load</link>
        <pubDate>Sun, 08 Feb 2026 16:39:36 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>Loren Maxwell</dc:creator>
        <guid isPermaLink="false">81660@/forums/discussions</guid>
        <description><![CDATA[<p>I'll post this on this page as well: <a rel="nofollow" href="https://editor.datatables.net/reference/option/template">https://editor.datatables.net/reference/option/template</a></p>

<p><a href="/forums/profile/Stacey1134" rel="nofollow">@Stacey1134</a> has a solution in the comments about how to avoid that brief flash of custom templates for Editors on page load.</p>

<p>An example of that flash can be found here:<br />
<a rel="nofollow" href="https://editor.datatables.net/examples/simple/template-attribute.html">https://editor.datatables.net/examples/simple/template-attribute.html</a><br />
or <a rel="nofollow" href="https://editor.datatables.net/examples/simple/template.html">https://editor.datatables.net/examples/simple/template.html</a></p>

<p>My previous solution was similar to his (hiding the template in the html and then using the API to show it), but since then I've started to just put all my templates in a special section of the page that is hidden:</p>

<pre><code>&lt;!-- All custom templates go inside this div --&gt;
&lt;div hidden&gt;
   &lt;div id="customForm"&gt;
      yada yada yada
   &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Now all my custom templates are hidden when the page loads and I can get rid of all <a rel="nofollow" href="//datatables.net/ref/editor/event/initEditor"><code title="Editor event">initEditor</code></a> code.</p>

<p>I would propose this as the best practice <img src="https://datatables.net/forums/resources/emoji/smile.png" title=":smile:" alt=":smile:" height="20" /></p>
]]>
        </description>
    </item>
    <item>
        <title>I found (and fixed) two bugs in Editor-Net</title>
        <link>https://datatables.net/forums/discussion/81649/i-found-and-fixed-two-bugs-in-editor-net</link>
        <pubDate>Wed, 04 Feb 2026 16:54:39 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>parcival</dc:creator>
        <guid isPermaLink="false">81649@/forums/discussions</guid>
        <description><![CDATA[<p>There is a bug in the latest version of Editor-Net with the Options class when adding manual entries.</p>

<p>The problem was with an attempted database call when it was not needed, and the value and labels being swapped for manual entries.</p>

<p>I've posted the details in an issue (<a rel="nofollow" href="https://github.com/DataTables/Editor-NET/issues/29)">https://github.com/DataTables/Editor-NET/issues/29)</a> and submitted a pull request with the fix (<a rel="nofollow" href="https://github.com/DataTables/Editor-NET/pull/30)">https://github.com/DataTables/Editor-NET/pull/30)</a></p>
]]>
        </description>
    </item>
    <item>
        <title>Updated tags wish list</title>
        <link>https://datatables.net/forums/discussion/81390/updated-tags-wish-list</link>
        <pubDate>Tue, 23 Sep 2025 21:16:13 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>Loren Maxwell</dc:creator>
        <guid isPermaLink="false">81390@/forums/discussions</guid>
        <description><![CDATA[<p>Just carrying over from this thread: <a rel="nofollow" href="https://datatables.net/forums/discussion/80475/autocomplete-tags-and-ajax/p1">https://datatables.net/forums/discussion/80475/autocomplete-tags-and-ajax/p1</a></p>

<p>Most of those requests were addressed with the Editor 2.5 release (<strong>thanks, <a href="/forums/profile/allan" rel="nofollow">@allan</a>!</strong>), but I wanted to capture the remainder here, not necessarily with the assumption that they'll be added, but just to clean up the conversation.</p>

<p><strong>1) Include the input with the wrap around navigation</strong><br />
The up/down arrows would include the input with the wrap around:<br />
* Arrow down from the input moves to the first record<br />
* Arrow up from the first record moves to the input<br />
* Arrow up from the input moves to the last record<br />
* Arrow down from the last record moves to the input</p>

<p><strong>2) Fully expose the <a rel="nofollow" href="//datatables.net/ref/core/api/ajax"><code title="DataTables API method">ajax</code></a> method</strong><br />
Mentioned as a possible future feature to mirror how the <a rel="nofollow" href="//datatables.net/ref/core/option/ajax"><code title="DataTables initialisation option">ajax</code></a> object is used elsewhere:</p>

<pre><code>new DataTable.Editor({
    ajax: '/api/data',
    fields: [{
        label: 'Counties:',
        name: 'county',
        type: 'tags',
        ajax: {
            url: '/api/counties',
            data: {
                state: 'Texas',
                yet_another_param: function () {
                    let foo = 42
                    return foo
                }
            }
    }],
    // ...
})
</code></pre>

<p><strong>3) Ability to use <a rel="nofollow" href="//datatables.net/ref/core/option/rowGroup"><code title="DataTables initialisation option">rowGroup</code></a></strong><br />
Mentioned the possibility of an <code title="HTML tag">optgroup</code>.</p>

<p><strong>4) Bootstrap floating labels</strong><br />
Not sure how this would look for <a rel="nofollow" href="//datatables.net/ref/editor/field/tags"><code title="Editor field type">tags</code></a> but perhaps above the <code>dte-tag</code>?</p>

<p><strong>5) Dropdown occasionally "disconnected" from field</strong><br />
Setting <a rel="nofollow" href="//datatables.net/ref/core/option/fields.className"><code title="DataTables initialisation option">fields.className</code></a> to 'block' or entering mobile mode seems to cause the dropdown to be placed lower than what it should be.</p>

<p>To duplicate, view the following link in mobile mode and create a new entry to see the dropdown for the country tags is too low for the control (see picture): <a rel="nofollow" href="https://editor.datatables.net/examples/dropdown/tags-rendering.html">https://editor.datatables.net/examples/dropdown/tags-rendering.html</a></p>

<p><img src="https://datatables.net/forums/uploads/editor/9b/tpcdpn64nxye.png" alt="" title="" /></p>

<p>If there was an editor field below the country tag on the form then it would show between the country tag and the dropdown.</p>

<p><strong>6) Option to have an initial AJAX load</strong><br />
I had requested this and the initial answer was to use <a rel="nofollow" href="//datatables.net/ref/core/api/field().update()"><code title="DataTables API method">field().update()</code></a>, but I could never get it work.</p>

<p>However I happen to notice in the <a rel="nofollow" href="https://editor.datatables.net/download/2.5.0" title="https://editor.datatables.net/download/2.5.0">Editor 2.5.0 release notes</a> that</p>

<blockquote>
  <p><a rel="nofollow" href="//datatables.net/ref/editor/field/tags"><code title="Editor field type">tags</code></a> and <a rel="nofollow" href="//datatables.net/ref/editor/field/autocomplete"><code title="Editor field type">autocomplete</code></a> didn't respect the update option of <a rel="nofollow" href="//datatables.net/ref/editor/api/field().update()"><code title="Editor API method">field().update()</code></a>.</p>
</blockquote>

<p>Perhaps that was the issue I was having so I'll try again one day this week.</p>

<p>If so, shouldn't the <a rel="nofollow" href="//datatables.net/ref/editor/api/field().update()"><code title="Editor API method">field().update()</code></a> documentation include <a rel="nofollow" href="//datatables.net/ref/editor/field/tags"><code title="Editor field type">tags</code></a> and perhaps <a rel="nofollow" href="//datatables.net/ref/editor/field/autocomplete"><code title="Editor field type">autocomplete</code></a>?</p>

<hr />

<p>Again, I'm <strong>very, very grateful</strong> to <a href="/forums/profile/allan" rel="nofollow">@allan</a> for all the improvements that were incorporated from that initial thread!</p>
]]>
        </description>
    </item>
    <item>
        <title>Field error message from global editor validator</title>
        <link>https://datatables.net/forums/discussion/81624/field-error-message-from-global-editor-validator</link>
        <pubDate>Sun, 25 Jan 2026 19:35:11 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>Loren Maxwell</dc:creator>
        <guid isPermaLink="false">81624@/forums/discussions</guid>
        <description><![CDATA[<p>For a global validator, can I return the error message to a specific field?</p>

<pre><code>    -&gt;validator(function ($editor, $action, $data) {
    
        foreach ($data['data'] as $id =&gt; $d) {
                return "I don't like"; // &lt;- Can I return for a specific field?
            }
        }
    
        return true;
    })
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>how is the `custom` argument used in i18n()?</title>
        <link>https://datatables.net/forums/discussion/81619/how-is-the-custom-argument-used-in-i18n</link>
        <pubDate>Wed, 21 Jan 2026 22:37:41 +0000</pubDate>
        <category>Editor</category>
        <dc:creator>nlooije</dc:creator>
        <guid isPermaLink="false">81619@/forums/discussions</guid>
        <description><![CDATA[<p>Hi, I am adding internationalization but I don't understand the function syntax of the <a rel="nofollow" href="https://editor.datatables.net/reference/api/i18n()" title="i18n()">i18n()</a> function as described in the reference manual.</p>

<pre><code>i18n( custom, token [, default] )
</code></pre>

<p>custom:</p>

<blockquote>
  <p>User defined string for this token. While it would be possible to check for this value outside the method, it is a common action to check for custom text values on objects (e.g. field configuration objects), so this is provided to simplify that logic. If not null or undefined, this value will be returned.</p>
</blockquote>

<p>token:</p>

<blockquote>
  <p>The JS object notation string for the value that is to be loaded. For example for i18n.create.button, create.button would be given here.</p>
</blockquote>

<p>The examples only use the <code>custom</code> argument:</p>

<pre><code>editor.i18n('edit.button');
</code></pre>

<p>This would (and does for me) return the string 'edit.button' which is not what is needed</p>

<p>Instead i have to set:</p>

<pre><code>editor.i18n(null, 'edit.button')
</code></pre>

<p>which does correctly return the string 'Update' as I would expect.</p>

<p>What is the usage of the <code>custom</code> argument?</p>
]]>
        </description>
    </item>
   </channel>
</rss>
