<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: On Cell edit query in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622299#M1019652</link>
    <description>&lt;P&gt;Hi Riya,&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;My lead want me to do with On cell Edit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mistakenly accepted the solution.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2023 13:31:32 GMT</pubDate>
    <dc:creator>Community Alums</dc:creator>
    <dc:date>2023-07-24T13:31:32Z</dc:date>
    <item>
      <title>On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2621450#M1019379</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From incident list, if the category changes to software and subcategory changes to email then record should not submit.&lt;/P&gt;&lt;P&gt;I have written the On cell edit client script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JPRamyaPriya_0-1690137449392.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/275350iA02420386D77EA4D/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/275350iA02420386D77EA4D/image-size/medium?v=v2&amp;amp;px=400 1.0x, /community/image/serverpage/image-id/275350iA02420386D77EA4D/image-dimensions/800x393?v=v2 2.0x, /community/image/serverpage/image-id/275350iA02420386D77EA4D/image-dimensions/1200x590?v=v2 3.0x" role="button" title="JPRamyaPriya_0-1690137449392.png" alt="JPRamyaPriya_0-1690137449392.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script include:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JPRamyaPriya_1-1690137509813.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/275351iA4EE19799A23CE21/image-size/medium?v=v2&amp;amp;px=400" srcset="/community/image/serverpage/image-id/275351iA4EE19799A23CE21/image-size/medium?v=v2&amp;amp;px=400 1.0x, /community/image/serverpage/image-id/275351iA4EE19799A23CE21/image-dimensions/800x427?v=v2 2.0x, /community/image/serverpage/image-id/275351iA4EE19799A23CE21/image-dimensions/1200x641?v=v2 3.0x" role="button" title="JPRamyaPriya_1-1690137509813.png" alt="JPRamyaPriya_1-1690137509813.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to pass newValue of subcategory to script include?&lt;/P&gt;&lt;P&gt;Any help is appreciate!!&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 18:40:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2621450#M1019379</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-07-23T18:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2621558#M1019418</link>
      <description>&lt;P&gt;Hi, what are the results of your debugging\testing? what exactly is\is not working?&lt;BR /&gt;Evaluating screenshots is not ideal, perhaps you could share your code as plain text.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 04:33:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2621558#M1019418</guid>
      <dc:creator>Tony Chatfield1</dc:creator>
      <dc:date>2023-07-24T04:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2621787#M1019475</link>
      <description>&lt;P&gt;Thanks Tony!!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what are the results of your debugging\testing? --&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;In the alert we are getting old value of category&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;what exactly is\is not working? - &lt;STRONG&gt;&lt;SPAN&gt;if we change category to software in the list and sub category changes to email then record should not submit to server. Script should check is it category is software or not, if yes, then the record should abort.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;On cell edit Client script:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Field name: &lt;STRONG&gt;&lt;SPAN&gt;Sub category&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Script:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;function onCellEdit(sysIDs, table, oldValues, newValue, callback) {&lt;BR /&gt;var saveAndClose = true;&lt;BR /&gt;//Type appropriate comment here, and begin script below&lt;BR /&gt;var ga = new GlideAjax('incidenttTable');&lt;BR /&gt;ga.addParam('sysparm_name', 'tablequery');&lt;BR /&gt;ga.addParam('sysparm_syssid', sysIDs);&lt;BR /&gt;ga.addParam('sysparm_newvalues', newValue);&lt;BR /&gt;ga.getXML(myid);&lt;/P&gt;&lt;P&gt;function myid(response) {&lt;/P&gt;&lt;P&gt;var answer = response.responseXML.documentElement.getAttribute("answer");&lt;BR /&gt;alert('ramya' + answer);&lt;BR /&gt;if (answer == 't1')&lt;BR /&gt;if (newValue == 'email')&lt;BR /&gt;alert('anns' + answer);&lt;BR /&gt;saveAndClose = false;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;callback(saveAndClose);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script Include:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;var incidenttTable = Class.create();&lt;/DIV&gt;&lt;DIV&gt;incidenttTable.prototype = Object.extendsObject(AbstractAjaxProcessor, {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; tablequery: function() {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var sysid = this.getParameter('sysparm_syssid');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //var managername = '';&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var empname = new GlideRecord('incident');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; empname.get(sysid);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; empname.query();&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (empname.next()) {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gs.addInfoMessage('category' + empname.category);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var state = empname.category;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var catgory;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (state == 'software')&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gs.addInfoMessage('category inside' + empname.category);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catgory = 't1';&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return catgory;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;});&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance!!&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jul 2023 08:03:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2621787#M1019475</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-07-24T08:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622125#M1019582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Community Alums&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can acheive this without coding.&lt;/P&gt;&lt;P&gt;1. Create &lt;FONT color="#FF0000"&gt;Before Insert/Update&lt;/FONT&gt; BR.(It'll work for list editing too)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Filter conditions : category is software&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Subcategory is Email&lt;/P&gt;&lt;P&gt;3. Under actions Tab: select Add message &amp;amp; Abort action.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Script includes + OncellEdit scripts are not efficeint together , You can user before BR.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 12:09:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622125#M1019582</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-07-24T12:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622171#M1019599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Community Alums&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you are doing great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not a good practice to use on cell edit client script , for your requirement , you can go ahead with before BR:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the "When to run" section, select "Before" to ensure the rule runs before the record is submitted.&lt;/LI&gt;&lt;LI&gt;For the "Advanced" condition, use the following script:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(function executeRule(current, previous /*, g*/) {
    if (current.category.changes() || current.subcategory.changes()) {
        if (current.category == 'software' &amp;amp;&amp;amp; current.subcategory == 'email') {
            current.setAbortAction(true);
            gs.addErrorMessage("Record submission is not allowed when the category is 'software' and the subcategory is 'email'.");
        }
    }
})(current, previous);
​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also when you are using getXML call while calling script include via GlideAjax, its a asynchronous call so it will be going into queue. it will not going to wait to get the response from server and decide the abort action. So this is reason why its failing in script. Try using before BR for your requirement to abort submit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jul 2023 12:29:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622171#M1019599</guid>
      <dc:creator>Riya Verma</dc:creator>
      <dc:date>2023-07-24T12:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622299#M1019652</link>
      <description>&lt;P&gt;Hi Riya,&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;My lead want me to do with On cell Edit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mistakenly accepted the solution.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 13:31:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622299#M1019652</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-07-24T13:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622303#M1019655</link>
      <description>&lt;P&gt;Hi Khasim,&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;My lead want me to do with On cell Edit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 13:32:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622303#M1019655</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-07-24T13:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622890#M1019872</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Community Alums&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Here are the modified Scripts.&lt;/P&gt;&lt;P&gt;-----Script Include-----&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var GetCatagory = Class.create();
GetCatagory.prototype = Object.extendsObject(AbstractAjaxProcessor, {
    getCat: function() {
        var sysId = this.getParameter('sysparm_sysId');
        // var subCat = this.getParameter('sysparm_subCat');
        gs.info('sys_id' + sysId);
        var gr = new GlideRecord('incident');
        gr.get(sysId);
        gr.query();
        if (gr.next()) {
            if (gr.category == 'software') {
                return true;
            } else {
                return false;
            }
        }
    },

    type: 'GetCatagory'
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------Client Script----------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
    var saveAndClose;
    //Type appropriate comment here, and begin script below
    var ga = new GlideAjax('GetCatagory');
    ga.addParam('sysparm_name', 'getCat');
    ga.addParam('sysparm_sysId', sysIDs);
    ga.getXML(myid);

    function myid(response) {
        var answer = response.responseXML.documentElement.getAttribute("answer");

        if (answer &amp;amp;&amp;amp; newValue == 'email') {
            saveAndClose = false;
            alert("Hi! Email can't be selected for category of 'software' try other combination");
            callback(saveAndClose);
        } else {
            saveAndClose = true;
            callback(saveAndClose);
        }
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Jul 2023 05:53:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622890#M1019872</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-07-25T05:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622895#M1019874</link>
      <description>&lt;P&gt;@Community Alums&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I've tested and it's working as expected.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Kindly mark it as a solution.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Khasim.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 05:57:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2622895#M1019874</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-07-25T05:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2623500#M1020091</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Community Alums&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;You have a solution now using onCellEdit from&amp;nbsp;&lt;SPAN class=""&gt;Khasim Pathan. I also tried, my version follows&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
	var saveAndClose = true;
	//Type appropriate comment here, and begin script below
	var sysIDstr = sysIDs;
//	alert('sysIDstr = ' + sysIDstr + ', newValue = ' + newValue);
	if (newValue == 'email') {
		var incGA = new GlideAjax('incidentTable');
		incGA.addParam('sysparm_name', 'tablequery');
		/* These don't work for some reason
		incGA.addParam('sysparm_syssid', sysIDstr);
		incGA.addParam('sysparm_newvalues', newValue);
		*/
		incGA.addParam('sysparm_newValue', newValue);
		incGA.addParam('sysparm_sysId', sysIDstr);
		incGA.getXML(myid);
	}

	function myid(response) {
        var answer = response.responseXML.documentElement.getAttribute("answer");
		var res = JSON.parse(answer);
        if (res.status === 'false') {
			alert(res.message);
			callback(false);
		}
		else
			callback(true);		
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script include:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var incidentTable = Class.create();
incidentTable.prototype = Object.extendsObject(AbstractAjaxProcessor, {

	tablequery: function() {
		obj = {};
		obj.status = 'true';
        obj.message = '';
        var newValue = this.getParameter('sysparm_newValue');
        var sysId = this.getParameter('sysparm_sysId');
//		gs.info("incidentTable: newValue = " + newValue + ", sysId = " + sysId);

		/* doesn't work
        var incID = this.getParameter('sysparam_syssid');
		var incSC = this.getParameter('sysparam_newvalues');
		gs.info('incidentTable: Checking for sys_id =  ' + incID + ', incSC = ' + incSC + '.');
		*/

		var incCategory = '';
        var empname = new GlideRecord('incident');
        empname.addQuery('sys_id', sysId);
        empname.query();
//		gs.info('incidentTable: Found ' + empname.getRowCount() + ' records.');
        if (empname.next()) {
//			gs.info('incidentTable: category: ' + empname.category);
            incCategory = empname.category;
        }
        if ((incCategory == 'software') &amp;amp;&amp;amp; (newValue = 'email')) {
//			gs.info('incidentTable: Got invalid combination.');
			obj.status = 'false';
            obj.message = gs.getMessage('Invalid combination of Category: software and Subcategory: email');
            return JSON.stringify(obj);
		}
        return JSON.stringify(obj);
    },
	
    type: 'incidentTable'
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed some name values, as starting with your versions didn't work. Also see examples of how to debug the client script and script include (Debug lines have been commented out). And from what I can tell, this only works in List view of incident. As I can still select that combination on the incident form. A business rule solution would prevent both. But you can satisfy your lead with the above or what&amp;nbsp;&lt;SPAN class=""&gt;Khasim posted.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 14:16:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2623500#M1020091</guid>
      <dc:creator>Bert_c1</dc:creator>
      <dc:date>2023-07-25T14:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: On Cell edit query</title>
      <link>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2631358#M1022892</link>
      <description>&lt;P&gt;Thanks for the script, however we choosed BR over OnCEllEdit client script.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:13:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/on-cell-edit-query/m-p/2631358#M1022892</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-08-02T15:13:47Z</dc:date>
    </item>
  </channel>
</rss>

